Mashhadi
Mashhadi

Reputation: 3024

how to apply scrolling an page control on uiview?

I have to scroll 3 UIViews using nib with paging in iPhone?

I have 3 view and there are different things on all the views. 2 views have a able view and one have some form. so how can i scroll then with paging?

Upvotes: 0

Views: 1657

Answers (3)

Man of One Way
Man of One Way

Reputation: 3980

Here is a good example on how to use a scroll view with paging enabled, it shows both how to use a UIScrollView and a UIPageControl.

http://www.edumobile.org/iphone/iphone-programming-tutorials/pagecontrol-example-in-iphone/

Upvotes: 0

Greg
Greg

Reputation: 9168

Read the docs for UIScrollView, and take a look at the pagingEnabled property: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIScrollView_Class/Reference/UIScrollView.html

You can adapt Apple's PageControl sample project to suit your needs: https://developer.apple.com/library/ios/#samplecode/PageControl/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007795

Upvotes: 1

koti
koti

Reputation: 81

it might help you..

[scrollView setContentOffset:CGPointMake(x,y) animated:NO];

Upvotes: 0

Related Questions