Latest 1.1.0
Homepage https://github.com/chenddcoder/ScrollPageView
License MIT
Platforms ios 5.0, requires ARC
Dependencies SMPageControl
Authors

ScrollPageView

//定义所需要的变量
@property (weak, nonatomic) IBOutlet UIView *autoPlayView;
@property (nonatomic, strong) DDScrollPageView * pageView;
@property (nonatomic, strong) NSArray * viewArray;

//创建ScrollPageView
self.pageView=[[DDScrollPageView alloc] initWithFrame:self.autoPlayView.frame];
self.pageView.pageControlOffsetY=-30;
self.pageView.interval=2.0;
self.pageView.isAutoPlay=YES;
self.pageView.isCycle=YES;
self.pageView.dataSource=self;
[self.pageView setPageIndicatorImage:[UIImage imageNamed:@”灰点”] andCurrentPageIndicatorImage:[UIImage imageNamed:@”banner点”]];
[self.autoPlayView addSubview:self.pageView];
[self.pageView reloadData];

//实现代理
#pragma mark DDScrollPageViewDataSource
-(NSInteger)numberOfViewsInScrollPageView:(DDScrollPageView *)scrollPageView{
return self.viewArray.count;

}
-(UIView *)scrollPageView:(DDScrollPageView *)scrollPageView viewForIndex:(NSInteger)index{
return self.viewArray[index];
}

Latest podspec

{
    "name": "DDScrollPageView",
    "version": "1.1.0",
    "summary": "it is use to create a ScrollPageView,can cycleu001aautoplay,easy to use",
    "homepage": "https://github.com/chenddcoder/ScrollPageView",
    "license": "MIT",
    "authors": {
        "chenddcoder": "[email protected]"
    },
    "platforms": {
        "ios": "5.0"
    },
    "source": {
        "git": "https://github.com/chenddcoder/ScrollPageView.git",
        "tag": "1.1.0"
    },
    "source_files": "ScrollPageController/ScrollPageController/Classes/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "SMPageControl": [
            "~> 1.2"
        ]
    }
}

Pin It on Pinterest

Share This