2
我不喜歡以下UITableViewCell的明確分離
tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
然而,當我添加新行,分隔符會出現像下面的圖片。
如何在UITableViewCell中刪除分隔符?
我不喜歡以下UITableViewCell的明確分離
tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
然而,當我添加新行,分隔符會出現像下面的圖片。
如何在UITableViewCell中刪除分隔符?
我得到了它
UIView *backView = [[UIView alloc] initWithFrame:CGRectZero];
backView.backgroundColor = [UIColor clearColor];
tableview.backgroundView = backView;
[backView release];
只是發表,因爲我發現其他的方式。
我使用了UITableView.separatorColor屬性,並設置顏色與單元格的背景顏色相同。
這將使那些使用默認單元格屬性的人更容易
我對ios 9.1有同樣的問題 – 2015-09-17 05:09:49