CATableViewCell

类说明

作为CATableView的cell添加进tableView,具备CAControl的功能。

基类

CAControl

CATableViewCell 属性(点击查看方法介绍)

属性说明
ContentView内容视图
BackgroundView设置cell的背景视图
ReuseIdentifier复用标示符
SectionSection
Row
ControlStateEffect控制状态
AllowsSelected允许选择

CATableViewCell 方法(点击查看方法介绍)

方法说明
create创建,并指定cell的复用标示符
initWithReuseIdentifier初始化,并指定复用标示符

CATableViewCell 属性说明

ContentView

类型:CAView

解释:内容视图,get{}。

BackgroundView

类型:CAView*

解释:设置cell的背景视图,set/get{}。

ReuseIdentifier

类型:std::string

解释:复用标示符,set/get{}。

Section

类型:unsigned int

解释:Section,get{}。

Row

类型:unsigned int

解释:行,get{}。

ControlStateEffect

类型:bool

解释:控制状态,is/set{}。

AllowsSelected

类型:bool

解释:允许选择,is/set{}。

CATableViewCell 方法说明

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

返回值:CATableViewCell*

类型:

类型参数名说明
const std::string&reuseIdentifier复用标示符

解释:创建,并指定cell的复用标示符

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

返回值:bool

类型:

类型参数名说明
const std::string&reuseIdentifier复用标示符

解释:初始化,并指定复用标示符

作者:admin,如若转载,请注明出处:https://www.web176.com/crossapp/10200.html

(0)
打赏 支付宝 支付宝 微信 微信
adminadmin
上一篇 2023年2月21日 下午2:50
下一篇 2023年2月21日 下午2:50

相关推荐

发表回复

登录后才能评论