源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

IOS 基础之设置 tableview 的分割线

  • 时间:2020-02-14 14:45 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:IOS 基础之设置 tableview 的分割线
[b] ios tableView 设置 tableview 的分割线[/b] [b]实现效果图:[/b] [img]http://files.jb51.net/file_images/article/201703/201733092638005.png?20172309271[/img]   [tableview   setSeparatorColor:[UIColor    blueColor]];  //设置分割线为蓝色 [b]隐藏UITableViewCell的分隔线[/b]
[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
};

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部