新 Xcode 版本 11.2.1 构建应用程序布局问题

New Xcode version 11.2.1 build app layout problem

当我将 Xcode 更新到 11.2.1 时,构建应用程序时出现布局问题,就像这样。

这是普通版: 如何修改?

尝试使用以下代码呈现 viewController

Swift:

let vc = UIViewController()
vc.modalPresentationStyle = .fullScreen 
self.present(vc, animated: true, completion: nil)

Objective-c:

UIStoryboard *story = [UIStoryboard storyboardWithName:@"Main" bundle:nil];
ViewController *vc = [story instantiateViewControllerWithIdentifier:@"ViewController"];
vc.modalPresentationStyle = UIModalPresentationFullScreen ;
[self presentViewController:vc animated:YES completion:nil] ;