iPhone应用程序的背景图像不完美呈现 [英] Background image of iPhone app is not showing perfectly

查看:102
本文介绍了iPhone应用程序的背景图像不完美呈现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设置我的iPhone应用程序的背景图像。我创建3维图像

I want to set background image of my iPhone app. I've created 3 dimensions images


  1. 320 * 480

  2. 640 * 960

  3. 640 * 1136

但是,当我设置背景则整个图像没有显示。我指的是图像的宽度完美呈现,但身高没有显示。 90%高度只显示在模拟器和我的iPhone。

But when i set background then whole image is not showing. I mean width of the image is showing perfectly but height is not showing. 90% height is only showing in simulator and my iPhone.

我不知道是什么原因。我在iPhone是新。请帮我。

I don't know what is the reason. I am new in iPhone. Please help me.

谢谢!结果
SHAILESH

Thanks!
Shailesh

推荐答案

您忘了你有一个状态栏,女巫有20个像素。此外,如果您使用的是UINavigationBar的,这其中的44px。看一些例子:

You forgot you have a status bar, witch has 20 px. Also, if you are using a UINavigationBar, this one its 44px . See Some Examples:

**只的状态栏。(20像素)

**only with statusBar (20 px)

尺寸背景:


  1. -iPhone 3GS:320x460

  2. -iPhone 4 / 4S:640x920(视网膜显示)

  3. -iPhone 5:640x1116(视网膜显示)

**状态栏+ UINavigationBar的(20像素+ 44像素)

**status bar + UINavigationBar (20px + 44 px)

尺寸背景:


  1. -iPhone 3GS:320x416

  2. -iPhone 4 / 4S:640x876(视网膜显示)

  3. -iPhone 5:640x1072

您应该检查此链接:
尺寸屏幕iPhone

这篇关于iPhone应用程序的背景图像不完美呈现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆