iPadでpresentModalViewControllerを使ってログイン画面を表示しようとしています。
LoginFormController *controller = [[[LoginFormController alloc] initWithNibName:@"LoginFormView" bundle:nil] autorelease];
[controller setModalTransitionStyle:UIModalTransitionStyleFlipHorizontal];
[controller setModalPresentationStyle:UIModalPresentationFormSheet];
[self controller:loginFormController animated:YES];
Interface Builder でビューをどのようなサイズに設定しても、常に約 540x620 にサイズ変更されます。しかし、ログイン画面は 2 つのテキスト フィールドと 1 つのボタンにすぎません。したがって、必要なのは 460x240 だけです。
これをリサイズする方法を知っている人はいますか?