UIModalPresentationFormSheet width and height for an iPad in landscape mode Nov 18, 2010
In a recent application I was doing, I was designing an interface to be shown as a modal form sheet using setModalPresentationStyle:UIModalPresentationFormSheet. I searched the Apple documentation to find the exact dimensions of this sheet but it isn't documented.
It only states "The width and height of the presented view are smaller than those of the screen and the view is centered on the screen. If the device is in a landscape orientation and the keyboard is visible, the position of the view is adjusted upward so that the view remains visible. All uncovered areas are dimmed to prevent the user from interacting with them."
AuthenticationViewController *authentication = [[AuthenticationViewController alloc] initWithNibName:@"AuthenticationViewController" bundle:nil]; [authentication setDelegate:self]; [authentication setModalPresentationStyle:UIModalPresentationFormSheet]; [self presentModalViewController:authentication animated:NO]; [authentication release];
If others are looking for the same information, I can tell its dimension in landscape mode is 540x620. I got this by looking at