![](/img/trans.png)
[英]ModelPresentationStyle FullScreen hides always the StatusBar
[英]Why UIModalPresentationPageSheet not working … its always fullscreen
這是用於將視圖控制器顯示為表單的代碼片段。
它總是以全屏顯示
UIStoryboard *sb = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
UIViewController *vc = [sb instantiateViewControllerWithIdentifier:@"ViewController2"];
vc.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:vc animated:YES completion:NULL];
我什至嘗試過...首選內容大小不起作用...
我認為您正在嘗試使用iPhone。
在iPad中嘗試一下。
在iPhone中,它始終是全屏的。
在iPad中,它會按照您的期望顯示為表格
如果要在iPhone中使用此功能,則必須嘗試第三方庫或自己做
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.