Xcode 11.1 模态呈现时在当前 VC 下方可见的视图控制器

Xcode 11.1 View controller visible underneath current VC when presenting modally

Xcode 自动更新,现在我的注册屏幕视图控制器显示在我转换到的当前视图控制器下方。 See screenshot 我该如何解决这个问题?

如果我创建一个 segue 并 select 使用 Interface Builder 以模态方式呈现,当我 运行 该应用程序时,我现在会在当前屏幕下方看到上一个屏幕。在更新之前,这从来都不是问题。 (我在整个应用程序中使用相同的背景,所以我的大部分视图控制器背景都设置为透明。)

此外,我认为这是相关的,当我在 Xcode 中查看我的故事板并将视图设置为使用 iPhone 8 Plus 时,它显示了一个以前不存在的浅灰色圆角矩形。 See storyboard layout When I run the App it appears that most of my view controllers are now constrained to this shape and no longer full screen. See this example here 我的设置视图控制器使用白色 bg,因此您可以更轻松地了解我在说什么。这个 VC 曾经是全屏的,不是向下移动,而是在顶部四舍五入。有什么想法吗?

Xcode 11.1 定位 iOS 12.1

在 iOS 13 中,如果您有任何故事板转场,请转到故事板,您需要将 kind 属性 设置为 模态呈现呈现属性全屏

以编程方式使用 Swift:

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

对于Objective-C:

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