<分区>
<分区>
View Controller 状态栏在 iOS 8 等新 iPhone 中重叠 当它重定向到另一个 View Controller 时,现有 View 屏幕状态栏会部分显示。我正在使用此代码进行重定向
SecondView *view = [[SecondView alloc] initWithNibName:nil bundle:nil];
[self presentViewController:view animated:YES completion:NULL];
最佳答案
这不是状态栏的错误,这是 iOS 13 的功能,如果你不想要这个,你可以将 modalPresentationStyle
设置为全屏。喜欢,
SecondView *view = [[SecondView alloc] initWithNibName:nil bundle:nil];
view.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:view animated:YES completion:NULL];
关于ios - View Controller 状态栏在像 ios 8 这样的新 iPhone 中重叠,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59213934/