2

一部のユーザーは、4 インチ デバイスでアプリを実行しているときに、一貫して画面が切り取られているように見えます。iPod Touch 5gユーザー限定の可能性もあり、iOS6、iOS7で発生するようです(現在調査中)。シンプルで正しい UILaunchImageFile 構成だと思うものがあり、iPhone 5 とすべてのシミュレーターで正常に動作します。何か案は?

Info.plist:

...
<key>UILaunchImageFile~ipad</key>
<string>UILaunchImage-iPad</string>
<key>UILaunchImageFile~iphone</key>
<string>UILaunchImage</string>
...

アプリ製品のファイル システム:

MyApp.app/
     ...
     Info.plist
     UILaunchImage-568h@2x.png    (640x1136)
     UILaunchImage-iPad.png       (768x1024)
     UILaunchImage-iPad@2x.png    (1536x2048)
     UILaunchImage.png            (320x480)
     UILaunchImage@2x.png         (640x960)
     ...

[編集: MyAppDelegate の私のスタートアップ コード]

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    ...

    // screen.bounds is the whole display size;
    // screen.applicationFrame is smaller when you show the status bar
    UIScreen * screen = [UIScreen mainScreen];
    CGRect screenBounds = screen.bounds;
    CGRect applicationFrame = screen.applicationFrame;
    self.window = [[[UIWindow alloc] initWithFrame:screenBounds] autorelease];

    // load main ui
    MyUIViewController * main = [[[MyUIViewController alloc] initWithNibName:@"MyUIViewController" bundle:nil] autorelease];
    UIView * rootView = [[[UIView alloc] initWithFrame:screenBounds] autorelease];
    main.view = rootView;
    [main loadIfNeeded];

    self.viewController = main;
    self.window.rootViewController = self.viewController;
    [self.window makeKeyAndVisible];

    ...
}
4

0 に答える 0