views:

35

answers:

2

I have this strange behavior, when I update my dataSource ofr my UITableView and call the reloadData thing, the cells are updated but the size of the table dosen't change.

I really do not have any clue... can some one help?

A: 

the problem usually lies in numberOfRowsInSection, make sure that you are recalculating the table size correctly

Aaron Saunders
why should I recalculate it?
0m4r
A: 

You should double check both numberOfRowsInsection and heightForRowAtIndexPath:, does your UITableViewCell has a different height than the default one, 44.f?

If it is a custom UITableViewCell, double check in nib (if you are using nib) or in your code again

vodkhang
Did the check, and it is OK, My cell are 80.0f in the nib files... but still... not resizing correctly :(
0m4r