10

I'm pretty sure that I've taken all steps to correctly set my status bar to hidden. I did this in both the info.plist file (setting a UIStatusBarHidden to a boolean TRUE) as well as in the applicationDidFinishLaunching method in the Application Delegate using:

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];

And the status bar does hide -- only not quick enough. Despite the steps taken above, when the app is launched, the status bar is STILL being displayed for about a second during the displaying of the Default.png default image. This looks tacky, and I want to make sure the status bar does not get displayed at any time during the running of the app.

Many apps I've tried ARE hiding the status bar successfully (doesn't even show during the display of default.png) but I can't figure out how. Anyone deal with this issue before?

4

6 に答える 6

17

あなたはすでにこれを理解しましたか?それを機能させるために私がしたことは、XcodeではなくTextMateでInfo.plistファイルを編集することです。次の 2 行を追加しました。

<key>UIStatusBarHidden</key>
<真/>

上記の回答と異なるのは、Xcode ではなくテキスト エディターを使用したことだけだと思います。その後、Xcode で Info.plist を見ると、文字列ではなく UIStatusBarHidden の横にチェック マークが表示されます。おそらく Xcode で直接これを行う方法があると思いますが、それが何であるかはわかりません。

于 2009-05-29T18:07:37.813 に答える
8

UIStatusBarHidden を true に設定する必要があります。

于 2009-05-23T04:25:59.217 に答える
5

それよりも簡単です。少なくともXcode 4では、「ステータスバーは最初は非表示です」というエントリをplistに追加し、その値をYESに設定するだけです。

plist のステータス バー エントリ

于 2011-11-25T08:23:38.800 に答える
5

info.plistには、チェックする必要がある「ステータスバーは最初は非表示です」というキーもあります。default.png のロード中にステータス バーを非表示にします。

于 2011-02-20T00:15:30.597 に答える
1

iPod Touch 2G(3.1.3)でも同様の問題が発生し、ステータスバーと同じサイズの黒い長方形がdefault.pngの上に表示されていました。

この問題の解決策は、元の640x960ではなくdefault.png画像を320x480にすることでした。正確な解決策は、より大きなサイズを使用してdefault@2x.pngを作成することでした。

于 2010-11-19T17:30:16.257 に答える
1

古いバージョンの Cydia で IOS 2.1 を使用しているジェイルブレイクされたデバイスでこれを見たことがあります。その場合、Cydia が更新されると、info.plist + ...statusBarHidden = YES メソッドが機能しました。

[application setStatusBarStyle: ...]または、役立つかどうかを確認してください。

-isdi-

于 2009-06-26T15:18:57.003 に答える