I have a method that adds a value to an array and tries to reload the table:
Quote:
- (void)addFeed: (NSURL *)feedURL
{
NSLog(@"addFeed:%@", feedURL);
[self.feeds addObject:feedURL];
NSLog(@"%@", self.feeds);
[self.tableView beginUpdates];
[self.tableView reloadData];
[self.tableView endUpdates];
}
|
I get an error saying that the number of rows in section was too small, but I dont want to create a bunch of blank rows.
How can I properly use the insertRowsAtIndexPaths method here?
EDIT: SELF-RESOLVED