separatorColor属性不会在iOS9 beta4上返回默认颜色

时间:2015-07-28 07:13:05

标签: ios objective-c ios9

separatorColor属性不会在iOS9 beta4上返回默认颜色。有什么想法吗?

在iOS8上打印separatorColor enter image description here

在iOS9 beta4上打印separatorColor enter image description here

1 个答案:

答案 0 :(得分:0)

您可以使用

在tableView中添加分隔符视图
 UIView* separatorLineView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 3)];/// change size as you need.       
 separatorLineView.backgroundColor = [UIColor whiteColor];// you can also put image here
 [cell.contentView addSubview:separatorLineView];

然后给出背景颜色以查看然后检查separatorColor。

希望它有所帮助。