Skip to content

Xummer/RCPageScrollView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

RCPageScrollView

Xummer


Follow Me On Weibo

Over View

重用的PageScrollView, 用法类似UITableView。

How To

1.设置DataSource

@interface ViewController () <RCPageScrollViewDataSource>

2.初始化

RCPageScrollView *scroll = [[RCPageScrollView alloc] initWithFrame:self.view.bounds dataSource:self elementCount:[_dataArray count] direction:kPageScrollVertical cycle:NO];
[self.view addSubview:scroll];

3.实现protocol 每个页面的初始化

- (UIView*)scrollView:(UIScrollView*)scrollView pageAtIndex:(NSInteger)index

重用页面的更新

- (void)scrollView:(UIScrollView *)scrollView updatePage:(UIView *)page atIndex:(NSInteger)index

以上

About

A page scroll view with reused pages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published