Question

I want to achieve the same as the guy in this question but using a universal App. That is, including all the iPad versions and all the iPhones and iPods that have retina display.

I think that the keys I need to add to my info.plist file in the UIRequiredDeviceCapabilities section are:

  • armv7
  • front-facing-camera~iphone
  • front-facing-camera~ipod

What I'm not sure of is if the ~iphone and ~ipod suffixes are enough to let the system know that I want to include the iPad 1 (which does not have a front Camera)

Can anyone confirm that this is the correct way to do this?

The guys at the apple support portal would only point me to the docs and guides, but I haven't found any real example of what I want to do.

Était-ce utile?

La solution

You can't use "suffix". This keys allows you to list ’hardware-like’ capabilities that your app needs. So.. let's say: microphone - your app "need" microphone! You can't say "I need microphone.. if is iPad"...

Autres conseils

I'm pretty sure that this would work - especially if there is a key for front-facing-camera~ipad.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top