简体   繁体   English

如何在iOS的通用应用程序中定义启动屏幕故事板图像大小?

[英]How to define launch screen storyboard image size in universal application in iOS?

I had a universal iPhone application in which i am decided to use launch screen storyboard instead of launch images. 我有一个通用的iPhone应用程序,在该应用程序中,我决定使用启动屏幕故事板而不是启动图像。

Now i added a full screen image view on to it then i need an image of size 1x,2x,3x to fill that image view. 现在我在上面添加了全屏图像视图,然后我需要一个尺寸为1x,2x,3x的图像来填充该图像视图。

i am very much confused about the size of the image i need to add in assets.was it like 600*600(1x),2x,3x according to it . 我对需要添加资产的图像大小非常困惑。根据它它像600 * 600(1x),2x,3x一样。

but on that case image is showing as stretched,Can anybody help me on this ? 但是在这种情况下,图像显示为拉伸状态,有人可以帮我吗?

you can put all size images in assets . 您可以将所有尺寸的图像放入assets add new image set in it and select attribute inspector and check iphone and ipad from checkbox and uncheck universal. 在其中添加新图像集,然后选择attribute inspector ,然后从复选框中uncheck iphone和“ ipad ,然后uncheck通用”。 so you are able to put images for iphone and ipad both separately. 这样您就可以分别为iphone和ipad放置图像。 Hope this will help :) 希望这会有所帮助:)

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

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