"show 20 more messages" button in uitableview
I am newbie to iphone programming. I doing an mail like app in that i have to show inbox information in table view and at the final of dragging i should need "show 20 more messages" 开发者_如何学Cbutton. is there possibility of showing that?
if please can you provide with me a codes.
Regards, sathish
Sure, you just have to manage it manually:
- Add one extra row to your table view.
- In
tableView:cellForRowAtIndexPath:
, if theindexPath
corresponds to the last possible row (which is the extra row you added), create a cell that represents the button. - In
tableView:didSelectRowAtIndexPath:
, if theindexPath
corresponds to the last possible row, have your datasource load the additional data and send ainsertRowsAtIndexPaths:withRowAnimation:
to your table view.
精彩评论