Abhishek Sharma
Abhishek Sharma

Reputation: 475

Vertical View Pager either in Swift or in Objective C

Is it possible to implement Vertical ViewPager or not?

if Yes the please suggest me how to do it. I am working on an app, which is similar to Quiz App. I want to implement Quiz App result screen in which I am looking to implement Vertical View pager.

Thank you Abhishek

Upvotes: 1

Views: 827

Answers (1)

Wain
Wain

Reputation: 119031

So that's simply a scroll view, or a subclass of (I.e. A table or collection view). The scroll direction is controlled by the content size (or the layout for the collection). Any scroll view can have paging enabled.

If using a table or collection you simply need to set the row height or item size to the size of the view. For a plain scroll view you add the page views as sub views and set their size to equal the scroll view frame.

Upvotes: 2

Related Questions