Launch UITableView from below

I am new to Objective-C programming and I am creating an application that requires the Table View to load from the bottom up, similar to messaging applications. I've tried googling about this, but I'm still a little confused about the code I'm using. Thank you in advance!

+3


source to share


1 answer


UITableView

polling it dataSource

for cells depending on what is visible on the screen. So the key to your problem is that you want to show the bottom of the table first.

To do this, you can call [tableView setContentOffset:CGPointMake(0, CGFLOAT_MAX)];

which will scroll UITableView

to the bottom.



Be aware that the placement of this call may depend on whether you are using autoplay.

See How to scroll to the bottom of a UITableView on iPhone before the view appears for more information

0


source







All Articles