IPad - resizing modal UIViewController

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?

+3
source share
1 answer

HIG iPad Modal Views. , . , Apple dev, NDA. , , , - iPad, , iPhone - . UIAlert ? IB, . Tutorial

+7

Source: https://habr.com/ru/post/1732399/


All Articles