iOSプログラミングの学習を始めたばかりです。
アプリケーションの起動時にモーダル ウィンドウを特定のサイズで表示したいと考えています。だから、私のView Controllerで、このコードを書きました。
-(void)viewDidAppear:(BOOL)animated{
ModalViewController *modal;
modal = [[ModalViewController alloc] init];
modal.modalPresentationStyle = UIModalPresentationFormSheet;
modal.view.frame = CGRectMake(0, 0, 100, 100);
[self presentViewController:modal animated:YES completion:nil];
}
このコードでは、モーダル ウィンドウが表示されますが、画面サイズに合わせたサイズで表示されます。
設定したサイズでモーダル ウィンドウが表示されるようにします。
どうすればそれを機能させることができますか?
事前にどうもありがとうございました!!