iPad/iPhone Dev: displayViewController Is Rendering Portrait in Landscape Orientation
Posted
by Holly
on Stack Overflow
See other posts from Stack Overflow
or by Holly
Published on 2010-06-06T22:19:06Z
Indexed on
2010/06/06
22:22 UTC
Read the original article
Hit count: 338
-(void)displayFirstScreen { UIViewController *displayViewController=[[UIViewController alloc] init]; displayViewController.view = displaySplash; [self presentModalViewController:displayViewController animated:NO]; [self performSelector:@selector(removeScreen) withObject:nil afterDelay:2.0];
[displayViewController release];
} -(void)removeScreen { [[self modalViewController] dismissModalViewControllerAnimated:YES]; }
The above code works but my orientation is landscape and the view comes and goes in portrait. Any ideas?
Thanks in advance!
© Stack Overflow or respective owner