CATableViewCell

2018-09-08 15:40 更新

類說明

作為CATableView的cell添加進(jìn)tableView,具備CAControl的功能。


基類

CAControl


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

屬性說明
ContentView內(nèi)容視圖
BackgroundView設(shè)置cell的背景視圖
ReuseIdentifier復(fù)用標(biāo)示符
SectionSection
Row
ControlStateEffect控制狀態(tài)
AllowsSelected允許選擇


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

方法說明
create創(chuàng)建,并指定cell的復(fù)用標(biāo)示符
initWithReuseIdentifier初始化,并指定復(fù)用標(biāo)示符


CATableViewCell 屬性說明

ContentView

類型:CAView

解釋:內(nèi)容視圖,get{}。


BackgroundView

類型:CAView*

解釋:設(shè)置cell的背景視圖,set/get{}。


ReuseIdentifier

類型:std::string

解釋:復(fù)用標(biāo)示符,set/get{}。


Section

類型:unsigned int

解釋:Section,get{}。


Row

類型:unsigned int

解釋:行,get{}。


ControlStateEffect

類型:bool

解釋:控制狀態(tài),is/set{}。


AllowsSelected

類型:bool

解釋:允許選擇,is/set{}。


CATableViewCell 方法說明

static CATableViewCell* create(const std::string& reuseIdentifier);

返回值:CATableViewCell*

類型:

類型參數(shù)名說明
const std::string&reuseIdentifier復(fù)用標(biāo)示符

解釋:創(chuàng)建,并指定cell的復(fù)用標(biāo)示符


virtual bool initWithReuseIdentifier(const std::string& reuseIdentifier);

返回值:bool

類型:

類型參數(shù)名說明
const std::string&reuseIdentifier復(fù)用標(biāo)示符

解釋:初始化,并指定復(fù)用標(biāo)示符

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

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號