本文介绍了iOS应用程序无法填充iPhone屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 Xamarin 编写iPhone应用程序。我的 UIViewController
没有填满整个屏幕,上下有差距。这是模拟器的屏幕截图。我更改了颜色方案,使间隙更明显
I am writing an iPhone app using Xamarin. My UIViewController
does not fill the entire screen, there is a gap above and below. Here is a screen shot from the simulator. I have changed the colour scheme to make the gaps more obvious
屏幕设计在Xcode中完成,下面是 UIViewController $ c设置的屏幕截图$ c> in Xcode。
The screen design was done in Xcode below is a screen shot of the settings for the UIViewController
in Xcode.
我做错了什么,为什么视图太小?
What am I doing wrong, why is the View too small?
推荐答案
将4启动屏幕图像放入资产目录或 info.plist
Put a 4" launch screen image into your asset catalog or info.plist
这篇关于iOS应用程序无法填充iPhone屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!