如何使iphone和iphone4-retina兼容的应用程序(在可可中做)轻松适应ipad? [英] How to make an iphone and iphone4-retina compatible app (done in cocoa) easily adapted to ipad?

查看:111
本文介绍了如何使iphone和iphone4-retina兼容的应用程序(在可可中做)轻松适应ipad?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题很简单:当一个iPhone应用程序也支持视网膜显示,它不需要一个额外的xib文件。 (字体和图像是自动缩放,你只需要准备双分辨率图像。)我想视网膜视图也适用于iPad,因此没有额外的xib文件。是的,我只是想让它看起来更大,但不是在从320x480扩展的低分辨率版本。

My question is simple: when an iPhone app also supports retina display, it does not need an additional xib file. (Fonts and images are auto-scaled, you just need to prepare double-resolution images.) I want that retina view also applies to iPad and hence there's no additional xib files. (Scale a bit and leave a bit margin, maybe.) Yes, I just want it look bigger, but not in the low-resolution version scaled up from 320x480.

推荐答案

iPhone,即使有视网膜显示器,不是一个iPad。您可以更新您的目标,xcode会自动转换您的视图使用iPad的整个屏幕,但它不会使应用程序符合
1.苹果指南
2.用户期望的一个通用app。

The iPhone, even with a retina display, is not an iPad. You can update your targets and xcode will convert automatically your views to use the entire screen of the iPad, but it won't make the application conforms to 1. Apple guidelines 2. Users expectations of an universal app.

但是,正如我所说,如果你更新你的目标,你的应用程序可能看起来相对不错(只是程序使用UI_USER_INTERFACE_IDIOM使用@ 2x.png版本你的图像)。

But, as I said, if you do update your targets, your app might look relatively good (just programatically use UI_USER_INTERFACE_IDIOM to use the @2x.png version of your images).

编辑:我误解了你的问题,现在纠正的答案:
没有什么可以做。 iPad将启动该应用程序作为一个iPhone应用程序(小非视网膜显示,像素化,如果双倍大小),如果它被定义为这样在plist,和iTunes Connect将销售您的应用程序作为通用,如果没有定义为iPhone在info.plist。
你基本上在这里有点选择,但移植应用程序,或多或少忘记iPad用户。而苹果当然想要的东西是这样的方式...

I misunderstood your question, and now the corrected answer: There's nothing you can do. The iPad will launch the app as an iPhone app (the small non retina display, pixelated if double sized) if it is defined as such in your plist, and iTunes Connect will sell your app as universal if it isn't defined as an iPhone in the info.plist. You basically have little choice here but to port the app or to more or less forget about iPad users. And Apple certainly wanted things to be that way...

这篇关于如何使iphone和iphone4-retina兼容的应用程序(在可可中做)轻松适应ipad?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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