0
separatorColor属性在iOS9 beta4上不返回默认颜色。任何想法?在iOS9 BETA4在iOS8上 separatorColor属性在iOS9 beta4上不返回默认颜色
separatorColor属性在iOS9 beta4上不返回默认颜色。任何想法?在iOS9 BETA4在iOS8上 separatorColor属性在iOS9 beta4上不返回默认颜色
可以使用
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];
在您的tableView添加分隔视图,然后给背景颜色来查看,然后检查separatorColor。
希望它有帮助。
感谢您的回答。但我需要一种方法来获取默认的分隔线颜色并在另一个视图上使用它。不要更改默认分隔符。 – VictorJi