can't set simulated metric to change

浪尽此生 提交于 2019-12-08 07:55:29

Just to check your understanding... Simulated Metrics are just how the status bar/tab bar etc appear in Interface Builder. These don't affect the running app.

The easiest place to change your status bar type is in your target's info.plist:

To change it programmatically, just use:

[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleBlackOpaque;

To change the nav bar style

self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!