iPad Modal view

Just a quick tip, hopefully Google will index this: If you want to present a modal view on the iPad from the bottom, even when in Landscape, you need to force the presentationStyle, like this: [cc]SLSWebView *controller = [[SLSWebView alloc] initWithNibName:@"SLSWebView" bundle:nil]; controller.modalPresentationStyle = UIModalPresentationPageSheet; controller.modalTransitionStyle = UIModalTransitionStyleCoverVertical; [self presentModalViewController:controller animated:YES];[/cc] Otherwise it might appear from the side (awkward).

Publié le 28 Apr 2010
Écrit par Cyril