简体   繁体   English

将本机rootView颜色更改为黑色?

[英]Change react-native rootView color to black?

I was looking through AppDelegate.m file in my iOS project, there is this line: 我在查看iOS项目中的AppDelegate.m文件时,显示以下行:

rootView.backgroundColor = [[UIColor alloc]
                              initWithRed:1.0f
                              green:1.0f
                              blue:1.0f
                              alpha:1];

I believe this sets iOS root view to white by default? 我相信默认情况下会将iOS根视图设置为白色吗? I was trying to google this notation, but wasn't able to find anything. 我试图用谷歌搜索这个表示法,但是找不到任何东西。 How would one alter rgb values so it is black? 一个将如何改变rgb值使其变为黑色?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM