当我将 Xcode 更新到 11.2.1 时,构建应用程序时出现布局问题,就像这样。
问问题
102 次
1 回答
1
尝试viewController
使用下面的代码进行演示。
迅速:
let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen
self.present(vc, animated: true, completion: nil)
目标-c:
UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [story instantiateViewControllerWithIdentifier:@"ViewController"];
vc.modalPresentationStyle = UIModalPresentationFullScreen ;
[self presentViewController:vc animated:YES completion:nil] ;
于 2019-11-28T09:07:20.000 回答