欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

iOS實(shí)現(xiàn)3D卡片式輪播效果

 更新時間:2020年02月21日 09:01:10   作者:H.A.N  
這篇文章主要為大家詳細(xì)介紹了iOS實(shí)現(xiàn)3D卡片式輪播效果,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下

本文實(shí)例為大家分享了iOS實(shí)現(xiàn)3D卡片式輪播效果的具體代碼,供大家參考,具體內(nèi)容如下

效果:

參考UITableView的UITableViewDataSource和UITableViewDelegate兩個方法實(shí)現(xiàn);支持五險輪播,可以加載本地圖片,也可以加載網(wǎng)絡(luò)圖片,可以根據(jù)自己的需求自定義

Demo地址

UITableViewDelegate

/**
 * 當(dāng)前顯示cell的Size(中間頁顯示大小)
 *
 * @param flowView <#flowView description#>
 *
 * @return <#return value description#>
 */
- (CGSize)sizeForPageInFlowView:(HQFlowView *)flowView;

/**
 * 滾動到了某一列
 *
 * @param pageNumber <#pageNumber description#>
 * @param flowView <#flowView description#>
 */
- (void)didScrollToPage:(NSInteger)pageNumber inFlowView:(HQFlowView *)flowView;

/**
 * 點(diǎn)擊了第幾個cell
 *
 * @param subView 點(diǎn)擊的控件
 * @param subIndex 點(diǎn)擊控件的index
 *
 * @return <#return value description#>
 */
- (void)didSelectCell:(HQIndexBannerSubview *)subView withSubViewIndex:(NSInteger)subIndex;

UITableViewDataSource

/**
 * 返回顯示View的個數(shù)
 *
 * @param flowView <#flowView description#>
 *
 * @return <#return value description#>
 */
- (NSInteger)numberOfPagesInFlowView:(HQFlowView *)flowView;

/**
 * 給某一列設(shè)置屬性
 *
 * @param flowView <#flowView description#>
 * @param index <#index description#>
 *
 * @return <#return value description#>
 */
- (HQIndexBannerSubview *)flowView:(HQFlowView *)flowView cellForPageAtIndex:(NSInteger)index;

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

最新評論