再び簡単な質問。 presentViewController
を使用して現在のビューコントローラの上に新しいviewcontrollerを表示すると、フルスクリーンになります。特定のサイズを提示するにはどうすればよいですか?あるいは別の方法を使うべきですか?PresentViewControllerフルスクリーンなし
コード:
- (IBAction)showProfile:(id)sender {
ProfileView *profileTop = [[ProfileView alloc] init];
profileTop.delegate = self;
[self presentViewController:profileTop animated:YES completion:nil];
}
は、あなたがそれに応じて提示ビューコントローラ内の位置やサイズself.view.frameを試してみましたか? –
[UIPresentationFormSheetのサイズを変更するには?](http://stackoverflow.com/questions/2457947/how-to-resize-a-uipresentationformsheet) – memmons
モーダルビューの代わりにaddsubviewを使用していないのはなぜですか? – utsabiem