1

いくつかのアプリを iPhone5 に移行しましたが、このアプリでは解決できません。同じ手順に従いますが、TabBarViewController がプログラムで rootController として定義されているため、ウィンドウの自動サイズ設定を設定するための xib レイアウトがありません。いつも私は迷惑な黒いフロントバーとトップバーを手に入れています.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{    
    self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    tabBarController = [[UITabBarController alloc] init];

    NSArray *viewControllers = [NSArray alloc];

    viewControllers = [NSArray arrayWithObjects: nil];

    // Attach them to the tab bar controller
    [self.tabBarController setViewControllers:viewControllers animated:NO];

    // Put the tabBarController's view on the window.
    [window addSubview:[self.tabBarController view]];

    self.window.rootViewController = self.tabBarController;

    [self.window makeKeyWindow];

    self.splashController = [[splashViewController alloc] initWithNibName:@"splashViewController" bundle:nil aidioma:self.idioma];
    [self.window addSubview:[splashController view]];
    [self.window makeKeyAndVisible];
4

1 に答える 1