Latest 1.0.1
Homepage https://github.com/zhaoleitmac/ZLScrollPageView
License MIT
Platforms ios 8.0, requires ARC
Authors

传入包含视图控制器的模型数组可以实现左右滑动/按钮切换视图。

Requirements

  • iOS 8.0 or later

Installation

Podfile

pod 'ZLScrollPageView', '1.0.1'

How To Use

创建一个ZLScollPageView,将持有其的控制器设置为其代理。

#import <ZLScollPageView/ZLScollPageView.h>
#import <ZLScollPageView/ZLScollPageModel.h>
...
ZLScollPageView *pageView = [ZLScollPageView createWithDelegate:self];

传入ZLScollPageModel数组为其数据源models。

ZLScollPageModel *model1 = [ZLScollPageModel new];
UIViewController *vc1 = [UIViewController new];
vc1.view.backgroundColor = [UIColor redColor];
model1.viewController = vc1;
model1.title = @"红色";
pageView.models = @[model1];

效果图

gif5

Latest podspec

{
    "name": "ZLScrollPageView",
    "version": "1.0.1",
    "summary": "u4f20u5165u5305u542bu89c6u56feu63a7u5236u5668u7684u6a21u578bu6570u7ec4u53efu4ee5u5b9eu73b0u5de6u53f3u6ed1u52a8/u6309u94aeu5207u6362u89c6u56feu3002",
    "homepage": "https://github.com/zhaoleitmac/ZLScrollPageView",
    "license": "MIT",
    "authors": {
        "u8d75u96f7": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/zhaoleitmac/ZLScrollPageView.git",
        "tag": "1.0.1"
    },
    "source_files": [
        "ZLScrollPageView",
        "ZLScrollPageView/**/*.{h,m}"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This