2015-07-28 72 views

回答

0

可以使用

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。

希望它有幫助。

+0

感謝您的回答。但我需要一種方法來獲取默認的分隔線顏色並在另一個視圖上使用它。不要更改默認分隔符。 – VictorJi