`

UITableView每个cell之间的默认分割线如何去掉

    博客分类:
  • iOS
 
阅读更多

刚刚才遇见这个问题,让自己很尴尬.

很简单,只需要

tableView.separatorStyle = NO;

分享到:
评论
2 楼 977616908 2014-02-26  
       
1 楼 lianxianghui 2012-10-15  
其实应该是 ableView.separatorStyle = UITableViewCellSeparatorStyleNone;
这是一个枚举值,在 UITableViewCell.h中定义的。

typedef enum {
    UITableViewCellSeparatorStyleNone,
    UITableViewCellSeparatorStyleSingleLine,
    UITableViewCellSeparatorStyleSingleLineEtched   // This separator style is only supported for grouped style table views currently
} UITableViewCellSeparatorStyle;

相关推荐

Global site tag (gtag.js) - Google Analytics