简体   繁体   English

xcode模拟器为什么不显示全屏

[英]Why doesn't the xcode simulator show full screen

I upgraded my xcode to version 12.3 and now when I create a new project, the simulator does not show full screen.我将我的 xcode 升级到 12.3 版,现在当我创建一个新项目时,模拟器不显示全屏。 The old projects however, does show simulator in full screen.然而,旧项目确实全屏显示模拟器。

I checked this (very old) question and it says to add a certain file, how can I do that?我检查了这个(非常老的)问题,它说要添加某个文件,我该怎么做?

在此处输入图像描述

在此处输入图像描述

In my case I removed launchScreen, and then added it back就我而言,我删除了launchScreen,然后将其添加回来

So, to add launch screen if u accidentally removed it,所以,如果你不小心删除了它,要添加启动屏幕,

Press cmd + n按 cmd + n

This is allow you to add new launch screen这允许您添加新的启动屏幕

Then in the general tab under然后在一般选项卡下

App Icons and Launch Images应用程序图标和启动图像

Set your launch screen file设置启动屏幕文件

also in the deployment Info set也在部署信息集中

Main interface主界面

在 Xcode 中打开项目 -> 选择 Target -> General -> 在 Launch Screen File 中添加 Launch screen

open the project in Xcode -> select Target -> General -> add Launch screen in Launch Screen File

In the Info.plist file add key: Launch screen interface file base name and value: LaunchScreenInfo.plist文件中添加键: Launch screen interface file base name和值: LaunchScreen

在此处输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM