HQCardFlowView

by HanQiGod

HanQiGod / HQCardFlowView

🔥🔥🔥3D卡片轮播,卡片轮播,无限轮播,DIY

132 Stars 27 Forks Last release: Not found 27 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

HQCardFlowView

3D卡片轮播,卡片轮播,无限轮播,DIY

如果喜欢,请给一个小星星。O(∩_∩)O谢谢!

详细请参考博客

效果如下图:

效果图

参考UITableView的UITableViewDataSource和UITableViewDelegate两个方法实现;支持五险轮播,可以加载本地图片,也可以加载网络图片,可以根据自己的需求自定义。

HQFlowViewDelegate

/**
*  当前显示cell的Size(中间页显示大小)
*
*  @param flowView 
*
*  @return CGSize
*/
- (CGSize)sizeForPageInFlowView:(HQFlowView *)flowView;

/**

  • 滚动到了某一列
  • @param pageNumber
  • @param flowView
  • /
  • (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(HQFlowView *)flowView;

/**

  • 点击了第几个cell
  • @param subView 点击的控件
  • @param subIndex 点击控件的index
  • @return
  • /
  • (void)didSelectCell:(HQIndexBannerSubview *)subView withSubViewIndex:(NSInteger)subIndex;

HQFlowViewDataSource

/**

  • 返回显示View的个数
  • @param flowView
  • @return
  • /
  • (NSInteger)numberOfPagesInFlowView:(HQFlowView *)flowView;

/**

  • 给某一列设置属性
  • @param flowView
  • @param index
  • @return
  • /
  • (HQIndexBannerSubview *)flowView:(HQFlowView *)flowView cellForPageAtIndex:(NSInteger)index;

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.