当前位置:K88软件开发文章中心编程语言APP编程CrossApp → 文章内容

CATableViewCell

减小字体 增大字体 作者:佚名  来源:网上搜集  发布时间:2019-1-23 13:52:00

由 ?﹏???ζ???﹏﹏? 创建, 最后一次修改 2016-09-07 类说明作为CATableView的cell添加进tableView,具备CAControl的功能。基类CAControlCATableViewCell 属性(点击查看方法介绍)属性说明ContentView内容视图BackgroundView设置cell的背景视图ReuseIdentifier复用标示符SectionSectionRow行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复用标示符解释:初始化,并指定复用标示符

CATableViewCell