W3Cschool
恭喜您成為首批注冊用戶
獲得88經(jīng)驗(yàn)值獎(jiǎng)勵(lì)
類說明
作為CATableView的cell添加進(jìn)tableView,具備CAControl的功能。
基類
CAControl
CATableViewCell 屬性(點(diǎn)擊查看方法介紹)
屬性 | 說明 |
ContentView | 內(nèi)容視圖 |
BackgroundView | 設(shè)置cell的背景視圖 |
ReuseIdentifier | 復(fù)用標(biāo)示符 |
Section | Section |
Row | 行 |
ControlStateEffect | 控制狀態(tài) |
AllowsSelected | 允許選擇 |
CATableViewCell 方法(點(diǎn)擊查看方法介紹)
方法 | 說明 |
create | 創(chuàng)建,并指定cell的復(fù)用標(biāo)示符 |
initWithReuseIdentifier | 初始化,并指定復(fù)用標(biāo)示符 |
CATableViewCell 屬性說明
類型:CAView
解釋:內(nèi)容視圖,get{}。
類型:CAView*
解釋:設(shè)置cell的背景視圖,set/get{}。
類型:std::string
解釋:復(fù)用標(biāo)示符,set/get{}。
類型:unsigned int
解釋:Section,get{}。
類型:unsigned int
解釋:行,get{}。
類型:bool
解釋:控制狀態(tài),is/set{}。
類型: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)示符
Copyright©2021 w3cschool編程獅|閩ICP備15016281號-3|閩公網(wǎng)安備35020302033924號
違法和不良信息舉報(bào)電話:173-0602-2364|舉報(bào)郵箱:jubao@eeedong.com
掃描二維碼
下載編程獅App
編程獅公眾號
聯(lián)系方式:
更多建議: