Note that there are some explanatory texts on larger screens.

plurals
  1. POapp works fine on iPhone; iPad simulator gives only black screen
    primarykey
    data
    text
    <p>Here's my applicationDidLaunch method from the app delegate:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { [self.window makeKeyAndVisible]; //This hides the status bar throughout the app. [UIApplication sharedApplication].statusBarHidden=YES; NSMutableArray *tabItems = [[NSMutableArray alloc] initWithCapacity:5]; GHHaikuViewController *hvc = [[GHHaikuViewController alloc] init]; hvc.tabBarItem.title = @"Home"; hvc.tabBarItem.image = [UIImage imageNamed:@"53-house.png"]; [tabItems addObject:hvc]; GHComposeViewController *cvc = [[GHComposeViewController alloc] init]; cvc.tabBarItem.title = @"Compose"; cvc.tabBarItem.image = [UIImage imageNamed:@"216-compose.png"]; [tabItems addObject:cvc]; GHWebViewController *wvc = [[GHWebViewController alloc] init]; wvc.tabBarItem.title = @"Buy"; wvc.tabBarItem.image = [UIImage imageNamed:@"80-shopping-cart.png"]; [tabItems addObject:wvc]; GHFeedback *fvc = [[GHFeedback alloc] init]; fvc.tabBarItem.title = @"Feedback"; fvc.tabBarItem.image = [UIImage imageNamed:@"18-envelope.png"]; [tabItems addObject:fvc]; GHSettingsViewController *svc = [[GHSettingsViewController alloc] init]; svc.tabBarItem.title = @"Settings"; svc.tabBarItem.image = [UIImage imageNamed:@"20-gear-2.png"]; [tabItems addObject:svc]; UITabBarController *tbc = [[UITabBarController alloc] init]; tbc.viewControllers = tabItems; self.window.rootViewController = tbc; return YES; } </code></pre> <p>And here's <code>viewDidLoad</code> from the first view controller, simplified for clarity:</p> <pre><code>-(void)viewDidLoad { [super viewDidLoad]; self.view.backgroundColor = [UIColor whiteColor]; background.backgroundColor = [UIColor whiteColor]; [self.view addSubview:background]; NSLog(@"View loaded."); } </code></pre> <p>Everything works fine on iPhone. On iPad (or at least simulator), "View loaded" logs, but instead of a white screen it's just black. Earlier I was playing around with a storyboard for the iPad, but I've deleted it and I THINK I removed all the files, and now everything is running from code. I've cleaned the project. What am I overlooking?</p> <p><strong>EDIT:</strong> Here's a shot of the target summary in Xcode.</p> <p><img src="https://i.stack.imgur.com/6wxLx.png" alt="enter image description here"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload