UITableViewCell 的附件类型 accessoryType 选中详情箭头

Posted wangwei-Carry

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UITableViewCell 的附件类型 accessoryType 选中详情箭头相关的知识,希望对你有一定的参考价值。

 UITableViewCell * cell = [[UITableViewCell alloc] init];

设置cell的附件类型:

// >1 打钩 选中
//    cell.accessoryType  = UITableViewCellAccessoryCheckmark;
    // >2 圆圈 + 感叹号
//    cell.accessoryType  = UITableViewCellAccessoryDetailButton;
    // >3 箭头 +(2)
//    cell.accessoryType  = UITableViewCellAccessoryDetailDisclosureButton;
    // > 4 箭头
    cell.accessoryType  = UITableViewCellAccessoryDisclosureIndicator;








以上是关于UITableViewCell 的附件类型 accessoryType 选中详情箭头的主要内容,如果未能解决你的问题,请参考以下文章