问题描述
目前我正在将我现有的 ios 应用程序调整为 ios 8 和 iphone 6.目前 iphone 6 上的键盘看起来相当高(就像 iphone 6 支持更新之前的 whatsapp 应用程序).谁能告诉我我必须做什么才能在我的代码中解决这个问题?
currently i am adjusting my already existing ios app to ios 8 and the iphone 6. currently the keyboard on the iphone 6 seems pretty tall (like the whatsapp app before the iphone 6 support update). can somebody tell me what i have to do, to fix this in my code?
推荐答案
这不是编码问题.您的应用程序正在针对较小的屏幕尺寸进行渲染,然后按比例放大以适应新的较大屏幕(包括键盘).如果您希望 iphone 6 和 6 plus 正确渲染,则需要在原始分辨率中包含启动图像,但如果您希望所有内容都增长以适应新的屏幕尺寸并拍摄,则可能需要使用自动布局额外空间的优势.
it's not a coding issue. your app is being rendered for the smaller screen sizes and then scaled up to fit the new larger screens (including the keyboard). you need to include launch images in the native resolutions for the iphone 6 and 6 plus if you want it to render properly, but you will likely need to be using auto-layout if you want everything to grow to fit the new screen sizes and take advantage of the extra space.
对于 iphone 6:
750 x 1334 (@2x) 纵向横向 1334 x 750 (@2x)
750 x 1334 (@2x) for portrait 1334 x 750 (@2x) for landscape
对于 iphone 6 plus:
1242 x 2208 (@3x) 纵向横向 2208 x 1242 (@3x)
1242 x 2208 (@3x) for portrait 2208 x 1242 (@3x) for landscape
或者你可以通过这个链接它可以帮助你
or you can go through this link it may help you
http://matthewpalmer.net/blog/2014/09/10/iphone-6-plus-launch-image-adaptive-mode/