vishal dharankar
vishal dharankar

Reputation: 7756

How to do this swipable view in iOS

I have attached an image and i wish to know how to achieve the highlighted swipable view to show images and some text.

thanks Swipable view

Upvotes: 0

Views: 85

Answers (2)

Alex
Alex

Reputation: 1581

use horizontal table views, as shown here

It's a lot more scalable, will spare you all the memory management boiler-plate code, and is a lot more efficient on older version of iPhones/iPod (which have much less memory).

Edit: just to be more specific. If you know before hand that your paging doesn't need to scale up, then a standard page controller is a good solution. On the other hand, if you can't put an upper limit on the number of pages or if each page has a significant memory footprint, or requires 2d image manipulation, then horizontal table view may be a solution.

Upvotes: 1

DBD
DBD

Reputation: 23223

Use a UIScrollView with pagingEnabled = YES

The dots under it are a UIPageControl which shows users how many pages of content there is and their position in the content.

Upvotes: 2

Related Questions