2013-04-21 28 views
1

我已经迁移一些应用程序到iPhone5的,但是这一个我无法去解决它。我按照同样的步骤,但现在我还没有得到厦门国际银行的布局设置自动调整大小的窗口,因为TabBarViewController被编程定义为rootController。总是我得到恼人的黑色前沿和顶级酒吧。无法应用迁移到iPhone5的视网膜4

- (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]; 
+1

你添加相应的4英寸启动图像,它告诉应用程序在“全屏”运行? – SAE 2013-04-21 22:06:37

+1

你在捆绑根目录下有一个'Default-568h @ 2x.png'文件? – 2013-04-21 22:06:42

+0

感谢您的意见。这是正确的,我不知道如果没有视网膜飞溅图像被添加时,没有大小将被应用。谢谢! – Jaume 2013-04-21 22:36:43

回答

2

要启用4英寸显示屏的支持,你需要将文件添加到您的项目命名为[email protected]的根源。

那么容易弄清楚,对不对? :)

+0

肯定的是,使用的viewController我一直在处理开机画面,但没有为这个应用程序......所以,当其他分辨率,并将视网膜大小将不再适用......嗯,非常感谢你没有4英寸视网膜splashImage,它的工作原理! – Jaume 2013-04-21 22:35:26