iphoneiosobjective-cstoryboardipod

App shows black screen on ipod


This app is universal and running perfectly fine on all other devices except iPod. I've used two storyboard.

This is the code which i've written in the AppDelegate.

 -(BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
 {    
    UIImage* background = [UIImage imageNamed:@"navigation-bar-background"];
    [[UINavigationBar appearance] setBackgroundImage:background forBarMetrics:UIBarMetricsDefault];

    [[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"black-back-button"]resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
    [[UIBarButtonItem appearance] setBackButtonBackgroundImage:[[UIImage imageNamed:@"black-back-button-landscape"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 10, 0, 10)] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];

    [[UISlider appearance] setThumbImage:[UIImage imageNamed:@"knob-button"] forState:UIControlStateNormal];
    return YES;
}

Solution

  • I forgot to add the main storyboard in the project.So,if anyone else get into the same problem then double check whether you have added a storyboard in main storyboard.