A tableView in my UIViewController has as data source a NSMutableArray.
After I’ve added a new object to the mutable array, I invoke [tableView reloadData], which correctly invokes:
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
returning the correct update amount of elements in the array. However the method:
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
is not called afterwards. I thought when I reloadData of a table view such method was invoked.
The sections method:
- (NSInteger)numberOfSectionsInTableView:(UITableView *)aTableView
always returns 1, in my code.
Thanks
It was a thread issue… Ive fixed it with: