我该如何更改ios表组边框? [英] how can i change ios table group border?
本文介绍了我该如何更改ios表组边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想摆脱这个白色边框或将其着色为黑色。
I want to get rid of this white border or colorize it to black.
如图所示,我想更改显示的白色边框红色圆圈。
As you see on the image, i want to change the white borders those shown in red circles.
如何更改?
将此cote添加到tableview控制器的viewDidLoad方法后;
after adding this cote to tableview controller's viewDidLoad method;
[self.tuzukCell.contentView.layer setBorderColor:[UIColor blackColor].CGColor];
[self.tuzukCell.contentView.layer setBorderWidth:2.0f];
产生的边界是:
< img src =https://i.stack.imgur.com/bhuDq.pngalt =在此处输入图像说明>
推荐答案
对于静态单元格..所有这些方法..必须在storyboard文件中设置..
for static cell.. all of these methods .. must be setup in the storyboard file..
所以..
点击storyboard文件/表视图/分隔符无/并选择所需的颜色..
so.. click on storyboard file / Table view / Separator "none" / and choose desired color..
这篇关于我该如何更改ios表组边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文