国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

CAWaterfallView(瀑布流控件)

2018-09-08 15:36 更新


類(lèi)說(shuō)明

CAWaterfallView 由很多的格子組成,但是每個(gè)格子的寬度和高速都是不確定的,是在動(dòng)態(tài)改變的,就像瀑布一樣,是一條線(xiàn)一條線(xiàn)的。


CAWaterfallView 屬性(點(diǎn)擊查看方法介紹)

屬性說(shuō)明
WaterfallViewDataSource添加數(shù)據(jù)代理
WaterfallViewDelegate添加交互代理
WaterfallHeaderView添加頭部視圖
WaterfallFooterView添加尾部視圖
WaterfallHeaderHeight設(shè)置頭部的高度
WaterfallFooterHeight設(shè)置尾部的高度
ColumnCount列計(jì)數(shù)
ItemMargin項(xiàng)目邊緣
ColumnMargin列邊緣
AllowsSelection允許選擇
AllowsMultipleSelection允許多個(gè)選擇
AlwaysTopSectionHeader總是顯示頂部
AlwaysBottomSectionFooter總是顯示底部


CAWaterfallView 方法(點(diǎn)擊查看方法介紹)

方法說(shuō)明
createWithFrame創(chuàng)建,并指定其Frame
createWithCenter創(chuàng)建,并設(shè)置其Center
init初始化
reloadData重載數(shù)據(jù)
dequeueReusableCellWithIdentifier從復(fù)用隊(duì)列中尋找指定標(biāo)識(shí)符的cell
setAllowsSelection是否開(kāi)啟cell選擇
setAllowsMultipleSelection是否可以多選cell
setSelectRowAtIndexPath通過(guò)索引選擇一行
setUnSelectRowAtIndexPath通過(guò)索引取消選擇一行
setShowsScrollIndicators顯示滾動(dòng)指示器
cellForRowAtIndexPath根據(jù)索引獲取顯示的cell
displayingWaterfallCell顯示W(wǎng)aterfall的Cell
getHighlightWaterfallCell突出Waterfall的Cell
switchPCMode開(kāi)關(guān)PC模式


CAWaterfallView 屬性說(shuō)明

WaterfallViewDataSource

類(lèi)型:CAWaterfallViewDataSource*

解釋?zhuān)禾砑訑?shù)據(jù)代理,set/get{}。


WaterfallViewDelegate

類(lèi)型:CAWaterfallViewDelegate*

解釋?zhuān)禾砑咏换ゴ恚瑂et/get{}。


WaterfallHeaderView

類(lèi)型:CAView*

解釋?zhuān)禾砑宇^部視圖,set/get{}。


WaterfallFooterView

類(lèi)型:CAView*

解釋?zhuān)禾砑游膊恳晥D,set/get{}。


WaterfallHeaderHeight

類(lèi)型:unsigned int

解釋?zhuān)涸O(shè)置頭部的高度,set/get{}。


WaterfallFooterHeight

類(lèi)型:unsigned int

解釋?zhuān)涸O(shè)置尾部的高度,set/get{}。


ColumnCount

類(lèi)型:unsigned int

解釋?zhuān)毫杏?jì)數(shù),set/get{}。


ItemMargin

類(lèi)型:unsigned int

解釋?zhuān)喉?xiàng)目邊緣,set/get{}。


ColumnMargin

類(lèi)型:unsigned int

解釋?zhuān)毫羞吘?,set/get{}。


AllowsSelection

類(lèi)型:bool

解釋?zhuān)涸试S選擇,is{}。


AllowsMultipleSelection

類(lèi)型:bool

解釋?zhuān)涸试S多個(gè)選擇,is{}。


AlwaysTopSectionHeader

類(lèi)型:bool

解釋?zhuān)嚎偸秋@示頂部,is/set{}。


AlwaysBottomSectionFooter

類(lèi)型:bool

解釋?zhuān)嚎偸秋@示底部,is/set{}。


CAWaterfallView 方法說(shuō)明

static CAWaterfallView* createWithFrame(const DRect& rect);

返回值:CAWaterfallView*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
const DRect&rect區(qū)域大小 

解釋?zhuān)簞?chuàng)建,并指定其Frame


static CAWaterfallView* createWithCenter(const DRect& rect);

返回值:CAWaterfallView*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
const DRect&rect中心點(diǎn)的位置及大小

解釋?zhuān)?/span>

創(chuàng)建,并設(shè)置其Center


virtual bool init();

返回值:bool

參數(shù):

解釋?zhuān)撼跏蓟?/span>


void reloadData();

返回值:void

參數(shù):

解釋?zhuān)褐剌d數(shù)據(jù)


CAWaterfallViewCell* dequeueReusableCellWithIdentifier(const char* reuseIdentifier);

返回值:CAWaterfallViewCell*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
const char*reuseIdentifier重用標(biāo)識(shí)符

解釋?zhuān)簭膹?fù)用隊(duì)列中尋找指定標(biāo)識(shí)符的cell


virtual void setAllowsSelection(bool var);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
boolvar是否開(kāi)啟

解釋?zhuān)菏欠耖_(kāi)啟cell選擇


virtual void setAllowsMultipleSelection(bool var);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
boolvar是否開(kāi)啟

解釋?zhuān)菏欠窨梢远噙xcell


void setSelectRowAtIndexPath(unsigned int itemIndex);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
unsigned intitemIndex項(xiàng)目Index

解釋?zhuān)和ㄟ^(guò)索引選擇一行


void setUnSelectRowAtIndexPath(unsigned int itemIndex);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
unsigned intitemIndex項(xiàng)目Index

解釋?zhuān)和ㄟ^(guò)索引取消選擇一行


virtual void setShowsScrollIndicators(bool var);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
boolvar是否開(kāi)啟

解釋?zhuān)猴@示滾動(dòng)指示器


CAWaterfallViewCell* cellForRowAtIndexPath(unsigned int itemIndex);

返回值:CAWaterfallViewCell*

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
unsigned intitemIndex項(xiàng)目Index

解釋?zhuān)焊鶕?jù)索引獲取顯示的cell


const CAVector<CAWaterfallViewCell*>& displayingWaterfallCell();

返回值:CAVector<CAWaterfallViewCell*>&

參數(shù):

解釋?zhuān)猴@示W(wǎng)aterfall的Cell


CAWaterfallViewCell* getHighlightWaterfallCell();

返回值:CAWaterfallViewCell*

參數(shù):

解釋?zhuān)和怀鯳aterfall的Cell


virtual void switchPCMode(bool var);

返回值:void

參數(shù):

類(lèi)型參數(shù)名說(shuō)明
boolvar是否開(kāi)啟

解釋?zhuān)洪_(kāi)關(guān)PC模式







以上內(nèi)容是否對(duì)您有幫助:
在線(xiàn)筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)