简体   繁体   English

启动屏幕图像显示不正确

[英]Launch screen image not displaying correctly

Working with the iOS launch screen and it's a very painful experience. 使用iOS启动屏幕,这是一个非常痛苦的体验。

Finally got it to appear, but no matter what I do it won't align properly. 终于让它出现了,但是无论我做什么,它都无法正确对齐。 It's either stretched too far, or in a weird position off the screen. 它要么拉得太远,要么离屏幕很奇怪。

What values for mode and stretching should I use to display this image viewer in my .xib? 我应使用什么模式和拉伸值在.xib中显示此图像查看器?

If you're using the Launch Screen.xib or Launch Screen.storyboard , you need to set the correct AutoLayout constraint in your IB file. 如果使用的是Launch Screen.xibLaunch Screen.storyboard ,则需要在IB文件中设置正确的AutoLayout约束。

If you're not, you need to set the Launch Images Source in your project general settings page. 如果不是这样,则需要在项目的常规设置页面中设置Launch Images Source

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

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