[英]Change custom cell's background without IB
I'm overloading my brains on this one. 我在这上面使我的大脑超负荷。
I've created a table, which contains custom cells (one of a kind). 我创建了一个表,其中包含自定义单元格(一种)。 A few days back, I changed the background to the grey you can see in the picture below here.
几天前,我将背景更改为灰色,如下图所示。
Now I don't know how I did that.... 现在我不知道我是怎么做到的...
I don't think I did this programatically... What else would explain the color in IB? 我不认为我是通过编程方式完成的……还有什么能解释IB中的颜色? I also searched my sourcecode, and the line for coloring the cell through code is commented out.
我还搜索了源代码,并通过代码为单元格着色的行被注释掉了。
I need to reproduce this coloring on other custom cells. 我需要在其他自定义单元格上重现这种颜色。 How the heck did I do this?
我到底是怎么做到的? :D
:D
Ah, I thought of the answer while getting a cup of coffee: 啊,我在喝咖啡时想到了答案:
Change the tableView's background (so, an other .xib-file) to the grey color to get that effect... 将tableView的背景(另一个.xib文件)更改为灰色以获得这种效果...
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.