Dani
Dani

Reputation: 1288

UIPageControl - iPhone Development

I have 5 pics to display (one at a time) in a UIPageControl way, so whenever i scroll (right or left) another pic will show. i can't find a sample code for that! i searched a lot and apple's sample code is complicated i need a simpler one.

Upvotes: 0

Views: 1347

Answers (1)

EmptyStack
EmptyStack

Reputation: 51374

Actually what you are looking for is UIScrollView with pagination. UIPageControl is the small dots that is mostly(not necessarily) positioned on the bottom of scroll view. You have to configure it separately.

To enable paging in a scroll view, you need to set its pagingEnabled property to YES. The following UIScrollView paging tutorial may help you.

Upvotes: 1

Related Questions