Need help with HQCardFlowView?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

HanQiGod
134 Stars 28 Forks 27 Commits 5 Opened issues

Description

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

Services available

!
?

Need anything else?

Contributors list

# 391,449
Objecti...
26 commits

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.