开发者

"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:

  1. Add one extra row to your table view.
  2. In tableView:cellForRowAtIndexPath:, if the indexPath corresponds to the last possible row (which is the extra row you added), create a cell that represents the button.
  3. In tableView:didSelectRowAtIndexPath:, if the indexPath corresponds to the last possible row, have your datasource load the additional data and send a insertRowsAtIndexPaths:withRowAnimation: to your table view.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜