iOS-UITableViewCell 选中样式分析

作者: 一位不愿透露姓名的王先生_ | 来源:发表于2016-08-21 21:56 被阅读363次
1. cell 默认(Defalut)状态的选中样式(见下图):
cell默认选中状态(default).png
2. cell (Gray)状态的选中样式(见下图):
cell选中状态(Gray).png
3. cell (Blue)状态的选中样式(见下图):
cell选中状态(Blue).png
注意:
  1. 自从 iOS7.0 以后 UITableViewCellSelectionStyleBlue就不起作用了
  • 默认都是
    UITableViewCellSelectionStyleDefault
    即:
    UITableViewCellSelectionStyleGray

    cell.selectionStyle = UITableViewCellSelectionStyleBlue;

相关文章

网友评论

    本文标题:iOS-UITableViewCell 选中样式分析

    本文链接:https://www.haomeiwen.com/subject/yxpwdttx.html