Ios 将旧应用程序转换为iPhone5。Tabbar浮动在屏幕底部上方。屏幕大小已调整为iPhone5

Ios 将旧应用程序转换为iPhone5。Tabbar浮动在屏幕底部上方。屏幕大小已调整为iPhone5,ios,objective-c,iphone,ios6,Ios,Objective C,Iphone,Ios6,我正在做一个非常古老的项目,它是用最少的笔尖完成的。 我添加了新的默认图像,这样屏幕现在可以加载到iPhone5大小,当我在iPhone5模拟器上看到图像时就可以确认了 - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [[UIApplication sharedApplication] setIdleTimerDis

我正在做一个非常古老的项目,它是用最少的笔尖完成的。 我添加了新的默认图像,这样屏幕现在可以加载到iPhone5大小,当我在iPhone5模拟器上看到图像时就可以确认了

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [[UIApplication sharedApplication] setIdleTimerDisabled:YES];
    [self.window setFrame:[[UIScreen mainScreen] bounds]];
    NSUserDefaults *standardUserDefaults = [NSUserDefaults standardUserDefaults];

    if (standardUserDefaults)
    {
        if ([[standardUserDefaults stringForKey:@"user"] caseInsensitiveCompare:@"(null)"] == NSOrderedSame)
        {
            //NSLog(@"Setting user to default_user");
            [standardUserDefaults setObject:@"default_user" forKey:@"user"];
            [standardUserDefaults setObject:@"default_user" forKey:@"password"];
            [standardUserDefaults setObject:@"NO" forKey:@"logged_in_status"];
            [standardUserDefaults synchronize];
        }
    }

    UINavigationController *localNavigationController;

    self.tabBarController = [[UITabBarController alloc] init];

    NSMutableArray *localControllersArray = [[NSMutableArray alloc] initWithCapacity:4];

    SettingsVC *firstViewController;
    firstViewController = [[SettingsVC alloc] init];
    localNavigationController = [[UINavigationController alloc] initWithRootViewController:firstViewController];
    [localNavigationController.tabBarItem initWithTitle:@"Settings" image:[UIImage imageNamed:@"icn_new_request.png"] tag:1];
    firstViewController.navigationItem.title=@"Settings";
    [localControllersArray addObject:localNavigationController];
    [localNavigationController release];
    [firstViewController release];

    VideoMenuVC *secondViewController;
    secondViewController = [[VideoMenuVC alloc] init];
    localNavigationController = [[UINavigationController alloc] initWithRootViewController:secondViewController];
    [localNavigationController.tabBarItem initWithTitle:@"Video" image:[UIImage imageNamed:@"icn_existing.png"] tag:2];
    secondViewController.navigationItem.title=@"Video";
    [localControllersArray addObject:localNavigationController];
    [localNavigationController release];
    [secondViewController release];

    LoginVC *thirdViewController;
    thirdViewController = [[LoginVC alloc] init];
    localNavigationController = [[UINavigationController alloc] initWithRootViewController:thirdViewController];
    [localNavigationController.tabBarItem initWithTitle:@"Log On/Off" image:[UIImage imageNamed:@"icn_phone.png"] tag:3];
    thirdViewController.navigationItem.title=@"Log On/Off";
    [localControllersArray addObject:localNavigationController];
    [localNavigationController release];
    [thirdViewController release];

    self.tabBarController.viewControllers = localControllersArray;
    self.tabBarController.selectedIndex = 1;

    [localControllersArray release];

    self.user_name = [[NSString alloc ]init];
    self.user_name = @"defaultFolder";

    NSLog(@"Frame Height: %f",self.window.frame.size.height);
    NSLog(@"Tab Height: %f",self.tabBarController.view.frame.size.height);
    NSLog(@"Tab Origin Y: %f",self.tabBarController.view.frame.origin.y);

    self.window.rootViewController = self.tabBarController;
    [self.window makeKeyAndVisible];
    return YES;
}
当发布图像出现时,它占据了iPhone5模拟器屏幕的整个区域

当应用程序完全加载并显示VideoMenuVC时,您可以看到它没有使用完整区域。选项卡栏下的白色区域不应存在

尽管查看了视图高度的NSlog,但它们似乎是正确的

我已经看了几个小时了,也许我看不到显而易见的东西,因为我看得太仔细了。对于我做错了什么,我希望有一些新的看法/想法

非常感谢,,
代码

在代码中找不到任何可能导致此问题的内容。我建议检查图标图像的大小。在我的一个项目中,我使用了60*60或70*60像素的图像

你是指用户启动应用程序时使用的应用程序图标图像吗?不,我谈到了选项卡图标,例如icn_new_request.png