一个CoverFlow视图:CFCoverFlowView

jopen 10年前

一个拥有分页功能的CoverFlow视图类似于iPad版的App Store。
一个CoverFlow视图:CFCoverFlowView

Usage

Add CFCoverFlowView.h/m file into your project. You can create CFCoverFlowView programmatically or use it in your storyboard with AutoLayout.

Example

CFCoverFlowView *coverFlowView = [[CFCoverFlowView alloc] initWithFrame:CGRectMake(0.0, 0.0, 768.0, 200.0)];  coverFlowView.delegate = self;  coverFlowView.pageItemWidth = 400.0;  coverFlowView.pageItemCoverWidth = 25.0;  coverFlowView.pageItemHeight = 190.0;  coverFlowView.pageItemCornerRadius = 15.0;  [coverFlowView setPageItemsWithImageNames:@[@"1", @"2", @"3", @"4", @"5", @"6"]];  [self.view addSubview:coverFlowView];    // delegate  - (void)coverFlowView:(CFCoverFlowView *)coverFlowView didScrollPageItemToIndex:(NSInteger)index;  - (void)coverFlowView:(CFCoverFlowView *)coverFlowView didSelectPageItemAtIndex:(NSInteger)index;

项目主页:http://www.open-open.com/lib/view/home/1406600383983