新的Xcode版本11.2.1构建应用程序布局问题 [英] New Xcode version 11.2.1 build app layout problem

查看:90
本文介绍了新的Xcode版本11.2.1构建应用程序布局问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我将Xcode更新为11.2.1时,则构建应用时出现布局问题,像这样.

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?

推荐答案

尝试使用下面的代码显示viewController.

try to presenting viewController using below code.

快捷键:

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

这篇关于新的Xcode版本11.2.1构建应用程序布局问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆