Latest 1.1.1
Homepage https://github.com/lwy121810/WYPageView
License MIT
Platforms ios 7.0, requires ARC
Authors

安装

pod

pod ‘WYPageView’, ‘~> 1.1.0’

手动

直接拖拽’WYPageView’文件夹到项目即可

介绍

  • 自定义指示器宽高
  • 自定义指示器滚动效果
  • 可完全自定义指示器样式
  • 支持标题字体颜色渐变、缩放效果
  • 自定义标题高度

使用

更多自定义配置可以查看WYPageConfig.h(内有详细注释)

    UIViewController *vc1 = [UIViewController new];
    vc1.view.backgroundColor = [UIColor redColor];
    vc1.title = @"头条";

    UIViewController *vc2 = [UIViewController new];
    vc2.view.backgroundColor = [UIColor greenColor];
    vc2.title = @"视频";

    UIViewController *vc3 = [UIViewController new];
    vc3.view.backgroundColor = [UIColor yellowColor];
    vc3.title = @"娱乐";

    UIViewController *vc4 = [UIViewController new];
    vc4.view.backgroundColor = [UIColor brownColor];
    vc4.title = @"中国足球";
    //
    UIViewController *vc5 = [UIViewController new];
    vc5.view.backgroundColor = [UIColor lightGrayColor];
    vc5.title = @"网易号";
    //
    UIViewController *vc6 = [UIViewController new];
    vc6.view.backgroundColor = [UIColor orangeColor];
    vc6.title = @"轻松一刻";

    UIViewController *vc7 = [UIViewController new];
    vc7.view.backgroundColor = [UIColor cyanColor];
    vc7.title = @"态度公开课";

    UIViewController *vc8 = [UIViewController new];
    vc8.view.backgroundColor = [UIColor blueColor];
    vc8.title = @"易城live";

    NSArray *childVcs = [NSArray arrayWithObjects:vc1, vc2, vc3, vc4, vc5, vc6, vc7,vc8,nil];
    // config为nil时,采用默认配置
    WYPageView *view = [[WYPageView alloc] initWithFrame:frame childVcs:childVcs parentViewController:self pageConfig:nil];
    [self.view addSubview:view];

效果

效果图

效果图2

更新

  • 2017-10-16 支持屏幕旋转 更新pod版本为’1.1.0′
  • 2017-8-29 初始化不再必须传frame 支持ios 11 更新pod版本为’1.0.3′
  • 2017-8-9: 上传新版本(使用scrollView替代collectionView,新增多种自定义效果)

    最后

      * 如果有什么问题欢迎 issues me 或者QQ群 ‘ 479663605 ‘(iOS 11 前沿技术交流)’ 497140713’(SDAutoLayout)联系我,最后,如果对您有帮助,请小小star支持一下☺️☺️
     

Latest podspec

{
    "name": "WYPageView",
    "version": "1.1.1",
    "summary": "u4e00u4e2au7b80u5355u7684u6edau52a8u89c6u56feu5c01u88c5",
    "homepage": "https://github.com/lwy121810/WYPageView",
    "license": "MIT",
    "authors": {
        "lwy121810": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/lwy121810/WYPageView.git",
        "tag": "1.1.1"
    },
    "source_files": "WYPageView/lib/WYPageView/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This