In my app I allow users to add new rows of NSStrings to a UITableView. I save these new strings in an NSMutableArray *dataArray
So for numberOfRowsInSection I return [dataArray count], but it seems to just return 0 all the time so my table is not auto-populating.
If it helps, when I do an NSLog of [dataArray count] as a add more entries, it keeps remaining as 0. Why isn’t it increasing?
Any help?
Without looking @ your code ,it’s not possible to predict the reason..
Then also you can try your HardLuck…below:
First try to NSLog your dataArray to check wether the record is adding in that or not.
It’s its ok… you are getting the records.
then you are missing one thing.
reload the table..
[tableView reloadData];
I think this would definitely help you..otherwise put some code over here.