Note that there are some explanatory texts on larger screens.

plurals
  1. POIpad: SplitViewController black DetailViewController
    text
    copied!<p>i have the following problem.</p> <p>I'm developing an app with a splitViewController as the root controller. In the appDelegate i have this code in method didFinishLaunchingWithOptions:</p> <pre><code>[self.window addSubview:splitViewController.view]; [self.window makeKeyAndVisible]; self.sendData = [[[SendData alloc] init] autorelease]; showEventsViewController.sendData = self.sendData; LoginView *lvc = [[LoginView alloc] initWithNibName:@"LoginView" bundle:nil]; lvc.delegate = self; [splitViewController presentModalViewController:lvc animated:NO]; [lvc release]; return YES; </code></pre> <p>When the login is complete, i dismiss the loginView and i show the splitViwController.</p> <p>Besides, my application needs to run only in landscape mode, so i have configured the plist in order to avoid only landscape mode and set this code in each view controller:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Overriden to allow any orientation. if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft) return YES; if (interfaceOrientation == UIInterfaceOrientationLandscapeRight) return YES; return NO; </code></pre> <p>}</p> <p>But when i run my app in portrait mode (the login view is shown right in landscape) and icomplete the login, the splitview is shown in landscape mode but the detailViewController is whole black (the master view is in landscape mode) </p> <p>What is happening?</p> <p>Thanks</p>
 

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