[_noteTitles addObject:@"title"];
[_noteDescriptions addObject:@"description"];
[self.tableView reloadData];
NSLog(@"%@", [_noteDescriptions description]);
NSLog(@"%@", [_noteTitles description]);
Before those lines I synthesized both “_noteDescription”, “_noteTitles.” When the NSLog lines are called, on the console i get “(null)” for both arrays. This function will be called multiple times (not too often) to update the contents of a table, but right now the arrays are not getting populated.
It looks like you did not initialize your arrays. Therefore, you are sending
addObject:toniland nothing happens. This also explains whyNSLog()prints(null).Note that
@synthesizegenerates the accessors for your property, it does not initialize the backing instance variable.