简体   繁体   English

无法在swift spritekit中为LaunchScreen设置大图像

[英]Unable to set a large Image for LaunchScreen in swift spritekit

Currently, I'm having a trouble with the LaunchScreen. 目前,我在LaunchScreen上遇到了麻烦。 I am trying to add a large 650 * 1134 size image to the launchScreen file. 我正在尝试将较大的650 * 1134尺寸的图像添加到launchScreen文件中。 However, The image seems not to fit properly. 但是,图像似乎不合适。 In android I was able to fit in large images as background and set up the size and positions programmatically, but I find it difficult to do it ios since I'm new to it . 在android中,我能够适应大型图像作为背景,并以编程方式设置大小和位置,但是我发现ios很难做到这一点,因为我是新手。 I've googled but find answers that are ambiguous. 我已经用谷歌搜索,但是发现的答案是模棱两可的。 It would be great if I can get a sample or hint from the pros here! 如果能在这里从专业人士那里获得样品或提示,那将是很棒的!

You mast have a file called LaunchScreen.xib. 您需要输入一个名为LaunchScreen.xib的文件。 Choose your image go to assistant editor, go to size inspector and use the width and height you want. 选择图像,进入助手编辑器,进入尺寸检查器,然后使用所需的宽度和高度。

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

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