ios - 新Xcode 11.2.1版本构建app布局问题
解决方案
尝试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] ;
推荐阅读
- dnp3 - DNP3 协议 - 数据如何存储?
- java - netty:保存通道处理程序上下文以供以后使用
- c# - 从对象获取通用列表(通过反射)
- c++ - 如何理解cpp中的++ cast表达式?
- excel - 尝试使用命令按钮删除 VBA 中的空行
- django - 在基于类的视图中正确实现 UserPassesTestMixin 或 AccessMixin
- dom - 加载下拉项目但禁用选择
- dbunit - DBRider 的问题:NoSuchTableException “表 'MY_NAME_TABLE' 在模式 'null' 中不存在”
- django - 当相关(外键)对象发生变化时如何可靠地运行自定义代码
- javascript - 组件的孩子没有出现