Xummer
重用的PageScrollView, 用法类似UITableView。
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