您的位置:首页 > 移动开发 > IOS开发

ios tableView那些事 (十)设置 tableview 的分割线

2013-09-03 12:02 330 查看
 [tableview   setSeparatorColor:[UIColor    blueColor]];  //设置分割线为蓝色

隐藏UITableViewCell的分隔线

[self.myTableView       setSeparatorStyle:UITableViewCellSeparatorStyleNone]; 

 UITableViewCellSeparatorStyle有如下几种 
typedef NS_ENUM(NSInteger, UITableViewCellSeparatorStyle) {
    UITableViewCellSeparatorStyleNone,
    UITableViewCellSeparatorStyleSingleLine,
    UITableViewCellSeparatorStyleSingleLineEtched  // This separator style is only supported for grouped style table views currently
};

效果如下 

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息