Latest 1.0.0
Homepage https://github.com/whde/WhdeViewPager
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit, QuartzCore
Authors

类似安卓的 ViewPager (Android ViewPager),效果如下

使用

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_];

Latest podspec

{
    "name": "WhdeViewPager",
    "version": "1.0.0",
    "summary": "iOS ViewPager",
    "description": "iOS ViewPager,u7c7bu4f3cAndroid u7684ViewPager",
    "homepage": "https://github.com/whde/WhdeViewPager",
    "license": "MIT",
    "authors": {
        "Whde": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/whde/WhdeViewPager.git",
        "tag": "1.0.0"
    },
    "source_files": "WhdeViewPager/Class/*",
    "frameworks": [
        "Foundation",
        "UIKit",
        "QuartzCore"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This