I am trying to display a login screen using presentModalViewController on an iPad.
LoginFormController *controller = [[[LoginFormController alloc] initWithNibName:@"LoginFormView" bundle:nil] autorelease];
[controller setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[controller setModalPresentationStyle:UIModalPresentationFormSheet];
[self controller:loginFormController animated:YES];
No matter what size I set for the view in Interface Builder, it always changes to 540x620. But the login screen is no more than two text fields and a button. Therefore, I need only 460x240.
Does anyone know how to resize it?
source
share