今天打算在CCA的app中把状态栏给隐藏掉,这样可以让有效空间大一点。查了下隐藏状态栏的方法,最简单的一个是:
在info.plist中,
设置key:Status bar is initially hidden 为YES
设置key:View controller-based status bar appearance 为NO
在不同的应用中,info.plist文件名前会加上应用名
另外,把代码中所有类似这样的代码都删掉:
[[UIApplication sharedApplication] setStatusBarHidden:NO withAnimation:NO];