gpt4 book ai didi

iphone - 如何更改 ios 表格组边框?

转载 作者:行者123 更新时间:2023-12-01 17:58:35 25 4
gpt4 key购买 nike

我想摆脱这个白色边框或将其着色为黑色。

正如您在图像上看到的,我想更改红色圆圈中显示的白色边框。

我怎样才能改变它?

enter image description here

将此 cote 添加到 tableview Controller 的 viewDidLoad 方法后;

[self.tuzukCell.contentView.layer setBorderColor:[UIColor blackColor].CGColor];
[self.tuzukCell.contentView.layer setBorderWidth:2.0f];

生成的边框是:

enter image description here

最佳答案

对于静态单元格..所有这些方法..必须在 Storyboard 文件中设置..

所以..
单击 Storyboard 文件/表格 View /分隔符“无”/并选择所需的颜色..

enter image description here

关于iphone - 如何更改 ios 表格组边框?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13413358/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com