I am using Default.png for iPhone and Default-Landscape.png for ipad. But in case of ipad the splash screen shows only half of the image and rest is cut. It seems to be the size of image becomes double of what it should be. I am using image with width:525 and height:175 for ipad.
我正在使用Default.png for iPhone和Default-Landscape.png for ipad。但是在ipad的情况下,启动画面只显示图像的一半,其余部分被剪切掉。似乎图像的大小变成应该的两倍。我正在使用宽度为525,高度为175的图像。
I also added:
我还补充说:
UILaunchImageFile~ipad Default-Landscape.png
in my info.plist file. What might be the problem? Please guide me....
在我的info.plist文件中。可能是什么问题?请指导我....
Also can i set the backgroung of splash screen to white????
我也可以将启动画面的背景设置为白色????
2 个解决方案
#1
1
The landscape iPad launch image has to be 1024x748 pixels. That's the only size that will prevent your image from scaling.
I guess the iPad tries to scale your image to a height of 748 which means the width will be 2244px. Not exactly double but something like four times the size of what you want.
风景iPad启动图像必须为1024x748像素。这是阻止图像缩放的唯一尺寸。我猜iPad试图将图像缩放到748的高度,这意味着宽度将是2244px。不完全是两倍,但大小是你想要的四倍。
Create a white image with dimensions of 1024x748 and put your 525x175 image in the middle of it.
创建尺寸为1024x748的白色图像,并将525x175图像放在其中间。
#2
0
Try the image name Default@2x.png
and size would be 1024X768
....
尝试使用图像名称Default@2x.png,大小为1024X768 ....
#1
1
The landscape iPad launch image has to be 1024x748 pixels. That's the only size that will prevent your image from scaling.
I guess the iPad tries to scale your image to a height of 748 which means the width will be 2244px. Not exactly double but something like four times the size of what you want.
风景iPad启动图像必须为1024x748像素。这是阻止图像缩放的唯一尺寸。我猜iPad试图将图像缩放到748的高度,这意味着宽度将是2244px。不完全是两倍,但大小是你想要的四倍。
Create a white image with dimensions of 1024x748 and put your 525x175 image in the middle of it.
创建尺寸为1024x748的白色图像,并将525x175图像放在其中间。
#2
0
Try the image name Default@2x.png
and size would be 1024X768
....
尝试使用图像名称Default@2x.png,大小为1024X768 ....