I have a UITableView on one view that loads data at the beginning of the application, and then when the user enters text in the field and presses the button, I re-query the database, re-populate the original NSMutableArray which stores the data for the table.
It all works great. In some registration operators, I can say that the array has the correct information, the numberOfRowsInSection method returns the correct counter and is called after a reboot call.
However, cellForRowAtIndexPath is never called a second time (after a reboot), and the table data is never updated.
I spent hours searching the net and I didn’t find anything that helps. Can anyone help?
All code is located at:
http://github.com/botskonet/inmyspot
A specific reboot is called at:
http://github.com/botskonet/inmyspot/blob/master/Classes/InMySpotViewController.m
Sample line 94
C:
http://github.com/botskonet/inmyspot/blob/master/Classes/PlateFormViewController.m
Sample line 101
A bit more information: as soon as new data has been added to mutablearray, if I try to start scrolling the table, it will eventually die with:
"The application terminated due to an unreported exception" NSRangeException ", reason:" *** - [NSCFArray objectAtIndex:]: index (29) outside (29) "
, - , , , , , , .