Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
大家好。所以我将一个 iphone 应用程序转换为一个通用应用程序,当我尝试更改背景颜色时,例如 view.backgroundColor = [UIColor blackColor];,它会在 iphone 上运行时发生变化。但是,ipad 只会显示灰色。有其他人得到这个吗?界面构建器也是如此。
谢谢,
您可能需要将 backgroundView 设置为 nil,因为我相信 iPad 有一个默认的灰色渐变视图,它将覆盖背景颜色。