我正在查看我的 iOS 项目中的 AppDelegate.m 文件,有这一行:
rootView.backgroundColor = [[UIColor alloc]
initWithRed:1.0f
green:1.0f
blue:1.0f
alpha:1];
我相信这会将 iOS Root View 默认设置为白色?我试图用谷歌搜索这个符号,但找不到任何东西。如何改变 rgb 值使其变成黑色?
最佳答案
rootView.backgroundColor = [UIColor blackColor];
https://moduscreate.com/blog/changing-the-react-native-rootview-background-color-ios-and-android/
关于ios - 将 native rootView 颜色更改为黑色?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49151583/