- Advanced pageViewController which could switch page by titleView of navigation bar and supports infinite pages. This controller should be inherited, so please create a subclass when using it.
- 可直接通過导航栏进行分页切换的布局容器,不限制分页数量。本Controller为基类,实际项目中需要继承使用(subClass)。
- Just drag
VisionControl
folder into your project - 将
VisionControl
文件夹拖入你的項目
#import "VisionSlideViewController.h"
//VisionSlideViewControllerDemo.h
@interface VisionSlideViewControllerDemo : VisionSlideViewController
/* VisionSlideViewControllerDemo.m */
@interface VisionSlideViewControllerDemo ()<VisionSlideViewControllerDataSource,VisionSlideViewControllerDelegate>
@end
//Setup
- (void)viewDidLoad{
[super viewDidLoad];
self.delegate = self;
self.dataSource = self;
///--------------
///init data or anything else
///--------------
[self reloadData];
}
//Required
- (NSInteger)numberOfControllersInVisionSlider:(VisionSlideViewController *)slider;
- (UIViewController *)visionSlider:(VisionSlideViewController *)slider viewControllerAtIndex:(NSInteger)index;
//Optional
- (NSString *)visionSlider:(VisionSlideViewController *)slider titleForViewControllerAtIndex:(NSInteger)index;
- (void)visionSlider:(VisionSlideViewController *)slider didEndDisplayingViewController:(UIViewController *)controller atIndex:(NSInteger)index;
Please download this project or see demo files to get more informations
- Replaced titleView of navigationbar with
VisionSlideSegmentView
. Click HERE to get more informations. - Support infinite pages
- Slide to show prev/next page
- 结合UINavigationController,直接将navigationbar的titleView作为分页选择器。若您对此分页选择器感兴趣,可以独立进行安装,详情请查看VisionSlideSegmentView
- 无限分页数
- 支持左右滑动翻页
- iOS 6 or later. Requires ARC ,support iPhone/iPad.
- iOS 6及以上系统可使用. 本控件纯ARC,支持iPhone/iPad横竖屏
Please create a issue if you have any questions. Welcome to visit my Blog
All source code is licensed under the MIT License.