iOS-启动时候隐藏状态栏
2016-09-28 本文已影响148人
FlyElephant
项目中有时候如果启动页面是纯图片为了美观需要隐藏隐藏状态栏
①在info.plist中设置Status bar is initially hidden 为 YES
②启动之后在显示状态栏:
<pre><code>[application setStatusBarHidden:NO withAnimation:UIStatusBarAnimationFade];
</code></pre>