</p>
WhdeViewPager
類似安卓的 <code>ViewPager</code> <code>(Android ViewPager)</code>
GitHub:https://github.com/whde/WhdeViewPager
使用
viewPager_ = [[WhdeViewPager alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
UIView *view1 = [[UIView alloc] init];
view1.backgroundColor = [UIColor lightGrayColor];
UIView *view2 = [[UIView alloc] init];
view2.backgroundColor = [UIColor whiteColor];
UIView *view3 = [[UIView alloc] init];
view3.backgroundColor = [UIColor yellowColor];
UIView *view4 = [[UIView alloc] init];
view4.backgroundColor = [UIColor grayColor];
UIView *view5 = [[UIView alloc] init];
view5.backgroundColor = [UIColor magentaColor];
[viewPager_ setItemsView:@[view1, view2, view3, view4, view5] withTitle:@[@"第一頁面", @"第二頁面", @"第三頁面", @"第四頁面", @"第五頁面"]];
[self.view addSubview:viewPager_];