New Xcode version 11.2.1 build app layout problem [duplicate]

て烟熏妆下的殇ゞ 提交于 2019-12-13 03:37:26

问题


When I update the Xcode to 11.2.1, then build the app have layout problem, like this.

This is the normal version: How do I modify it?


回答1:


try to presenting viewController using below code.

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] ;


来源:https://stackoverflow.com/questions/59083062/new-xcode-version-11-2-1-build-app-layout-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!