1

重複の可能性:
iPhone 5 の画面サイズの扱い方

iPhone 5 の基調講演を見て、デバイスの高さと 640 X 1136 の解像度を見ました。しかし、タブ バーやナビゲーション バーなどのネイティブ コンポーネントを使用すれば、問題なく動作すると思います。しかし、カスタム タブ バー、ナビゲーション バー、およびデバイスの向きに関連するコントロールについてはどうでしょうか。これらは私の質問です。

1) カスタム タブ バー、ナビゲーション バー、相対コンテンツなどを含むカスタム レイアウトの処理方法。

2) ようこそ画面。今のところ2サイズ必要です。では、iPhone 5 では、ノーマルと Retina 用にあと 2 つ必要ですか?

3) 基調講演を注意深く見た場合、iPhone 5 では左右のビューの一部がカットされるように見えるため、アプリ開発に追加の変更はありません。誰かがそれに気づいたことがありますか?

4

2 に答える 2

6

1) This depends on how you laid them out, you might need to adjust how you set the frame, change autoresizing masks etc, or if iOS 6 only is an option you could move to auto layout. Without knowing your code I cant give much more detail

2) There is no non-retina iPhone 5 so you only need 1 more Default.png size, named Default-568h@2x.png (btw adding this new sized default image is the trigger for iOS to show your app without letterboxing, so for some apps this is the only change which will need to be made)

3) This is the letterboxing I mentioned, it is what all current apps will do on the iPhone 5 until they are updated with a new default.png

于 2012-09-14T08:34:11.413 に答える
0

私の理解では、既存のすべてのアプリはiPhone 5で動作し、黒い境界線だけが表示されます。ただし、アプリをより大きな画面サイズに合わせて調整できるようになります。iPhone 5のサイズに一致する新しいサイズの.xibまたはストーリーボードがあると思います。アプリのデリゲートにifステートメントを配置して、画面に基づいてロードする.xib/ストーリーボードを選択できます。サイズ。残念ながら、現在のユニバーサルアプリの作成方法と同様に、複数の.xib/storyboardファイルを作成する必要があると思います。ロードされるファイルは、デバイスに基づいて選択されます。

お役に立てれば

于 2012-09-14T08:22:18.910 に答える