首页 > 其他 > 详细

Day12 TableViewCell 辅助功能

时间:2015-04-11 13:01:13      阅读:115      评论:0      收藏:0      [点我收藏+]

accessoryType

typedef NS_ENUM(NSInteger, UITableViewCellAccessoryType) {
    UITableViewCellAccessoryNone,                   // don‘t show any accessory view
    UITableViewCellAccessoryDisclosureIndicator,    // regular chevron. doesn‘t track
    UITableViewCellAccessoryDetailDisclosureButton, // info button w/ chevron. tracks
    UITableViewCellAccessoryCheckmark,              // checkmark. doesn‘t track
    UITableViewCellAccessoryDetailButton NS_ENUM_AVAILABLE_IOS(7_0) // info button. tracks
};

2 accessoryTypeView 可放一些switch

//cell.accessoryView = [[UISwitch alloc]init];
    cell.accessoryView = [UIButton buttonWithType:UIButtonTypeContactAdd];

  

backgroundColor  

   backgroundView //可放一些圆形的底图

selectedBackgroundView

 UIView *iv = [[UIView alloc]init];
    iv.backgroundColor = [UIColor redColor];
    cell.selectedBackgroundView =iv;

  

Day12 TableViewCell 辅助功能

原文:http://www.cnblogs.com/lihaozhou/p/4417253.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!