开发者

In TableView How can i show "Showmore" option for displaying more Records?

I have used TableView and i am displaying Data coming from the Web.开发者_JS百科NOW I WANT TO PERFORMING the Paging TableView so after 5 record i want to show "showmore" Option and by pressing "showmore" It Display remaining data so how it is possible?


  • In your table view, include a cell with the text "Show more...". It should probably also contain a UIActivityIndicator that is hidden at the moment.
  • If this cell is tapped, show the activity indicator and load more content from the Web in the background.
  • When you have received a response from your web service and have parsed the results, send your table view a insertRowsAtIndexPaths:withRowAnimation: message to have it load the new data.
  • Depending on whether you want to keep the "Show more" cell or remove it now, either hide the activity indicator and re-enable the cell or delete it by calling deleteRowsAtIndexPaths:withRowAnimation:.
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜