Moshe
Moshe

Reputation: 58097

How do I animate through a bunch of "paged" views in a UIScrollView?

Say I have a bunch of views in a UIScrollView and I want each one to appear on the screen, one at a time, how do I do so?

Upvotes: 1

Views: 59

Answers (1)

Ben
Ben

Reputation: 2992

Assuming your views are screen size, position them next to each other and set the pagingEnabled property to true, make sure the contentSize of the scoll view is wide enough for all of the views and then the user should be able to swipe through them one view at a time. You could do it automatically with an NSTimer if you don't want the user to have to swipe.

Upvotes: 1

Related Questions