开发者

How is Pagination done in iPhone or Xcode?

开发者 https://www.devze.com 2023-04-09 21:30 出处:网络
I would like to know how开发者_如何学C PAGINATION is done using a \"SWIPE\". Got a page with the name \"Account Details\" and this \"Account Details\" page should have around 4 PAGEs within that Acco

I would like to know how开发者_如何学C PAGINATION is done using a "SWIPE".

Got a page with the name "Account Details" and this "Account Details" page should have around 4 PAGEs within that Account Details of 4 more accounts.

These has got the information about the BANKING account details. So how is the PAGINATION done. for these 4 PAGEs keeping "Account Details" as the main page.

Please help me....!!!!!!


If i correctly understand what you want, you should use UIScrollView! Add this to your viewDidLoad:

UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
scrollView.contentSize = CGSizeMake(4 * self.view.bounds.width, 1); // 1 = hack to disable possible verticalBouncing
scrollView.pagingEnabled = YES;
/* add your pages as subviews here */
[self.view addSubview:scrollView];
[scrollView release];


You should be using the UIPageControl. Very straightforward.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号