I have a project that loads an array into a table view, no problem at all. I have created a new project, that has the exact same code, but a different array, and the table view loads blank. It's driving me nuts.
The array loads a plist as follows
where 'currentContent is a strong pointer to an NSArray private property of the parent view.
the plist looks like this
table view data source
the data source is connected in storyboard. the cell reuse identified in the storyboard is named as it is in the code. the above code has been entered in a subclass of uitableviewcontroller.
the storyboard is simply a tableview embedded in a navigation controller. the navigation controller is the initial view controller.
I have NO IDEA why this isn't working. Please help.
The array loads a plist as follows
where 'currentContent is a strong pointer to an NSArray private property of the parent view.
Code:
- (void) viewDidLoad {
NSString *path = [[NSBundle mainBundle] pathForResource:@"CustomerContent" ofType:@"plist"];
NSArray *myArray = [[NSArray alloc] initWithContentsOfFile:path];
currentContent = myArray;
}
the plist looks like this

table view data source
Code:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
// Return the number of sections.
return 1;
}
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
// Return the number of rows in the section.
return [currentContent count];
}
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
static NSString *CellIdentifier = @"Cell";
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if (cell == nil) {
cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
}
cell.textLabel.text = [[currentContent objectAtIndex:indexPath.row] objectForKey:@"customerFriendlyFileName"];
cell.detailTextLabel.text = [[currentContent objectAtIndex:indexPath.row] objectForKey:@"publicationDate"];
return cell;
}
the data source is connected in storyboard. the cell reuse identified in the storyboard is named as it is in the code. the above code has been entered in a subclass of uitableviewcontroller.
the storyboard is simply a tableview embedded in a navigation controller. the navigation controller is the initial view controller.
I have NO IDEA why this isn't working. Please help.