开发者

displaying first ten contact in one page and other in second page

开发者 https://www.devze.com 2023-03-03 15:49 出处:网络
I have requirement and I am not config开发者_JS百科uring out what to do for displaying first 10 contacts in the first page(table view), after 10th contact, it should display remaining 10 contact in se

I have requirement and I am not config开发者_JS百科uring out what to do for displaying first 10 contacts in the first page(table view), after 10th contact, it should display remaining 10 contact in second page(table view).

It should also display toolbar as soon 11th contact is added in table view showing the "Next" and "Previous" .

Please let me know from where I should start? Any tutorial or reference is appriciated


Pagination is nothing else than going through pages, just like you described.

If you want to use pagination show only as many entries as will fit on the screen, so the user always sees everything and doesn't need to scroll. You could still use a tableView and disable the scrolling though I still think a tableView is a very good way to show large amounts of data.

To navigate through your data some of these three approaches may give you an idea:

Buttons in a UIToolbar to go forth and back

displaying first ten contact in one page and other in second page

UISegmentedControl in a UIToolbar

displaying first ten contact in one page and other in second page

UIPageControl at the bottom, whole content is in a UIScrollView, user can swipe to go through pages

displaying first ten contact in one page and other in second page

0

精彩评论

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