为什么我的viewController背景颜色永久为白色?

If I change the background color and run the app the color works fine, but as soon as I add subViews like a tableView or a containerView the still visible parts of the background becomes white.

I have tried: - To set the color programatically. Still white. - To add another UIView on the superView, add the subViews to that and changed the color on the UIView instead. Still white. - While on the same approach as above, changed the superView color and set the UIView color to clear. Still white. - Changed the alpha value to 0, but this makes the subViews invisible as well.

这是层次结构:

enter image description here

以前从未遇到过这个问题,我也不了解...

评论