Appcelerator:在Splashscreen,iOS上隐藏状态栏

Whi*_*ine -1 appcelerator ios appcelerator-titanium

重新发布旧Appcelerator Q&A档案这个问题

是的,问题仍然是一样的.在我的新应用中,我无法再在启动画面隐藏状态栏.

我尝试了这些属性的所有可能组合(在tiapp.xml中)

<statusbar-hidden>true/false</statusbar-hidden>
<fullscreen>true/false</fullscreen>
<navbar-hidden>true/false</navbar-hidden>
Run Code Online (Sandbox Code Playgroud)

Sha*_*awn 5

是的,这些属性不会影响iOS应用程序.在tiapp.xml中,添加以下内容:

<ios>
    <plist>
        <dict>
            <key>UIStatusBarHidden</key>
            <true/>
        </dict>
    </plist>
</ios>
Run Code Online (Sandbox Code Playgroud)

参考