IOS 基础之设置 tableview 的分割线

这篇文章主要介绍了IOS 基础之设置 tableview 的分割线的相关资料,需要的朋友可以参考下

 ios tableView 设置 tableview 的分割线

实现效果图:

  [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 }; 

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!

以上就是IOS 基础之设置 tableview 的分割线的详细内容,更多请关注0133技术站其它相关文章!

赞(0) 打赏
未经允许不得转载:0133技术站首页 » 移动