Search code examples
iphoneiosxcodeinterface-builderretina-display

Developing app/game just for retina iphone


We are developing a game and want to support only retina iPhone devices for it. We have created @2x assets for the retina iPhone. There are a lot of xib files in the game for which we would be using the interface builder heavily.

If we use @2x assets in the interface builder directly, the only content modes we can use are "Scale to fill" or "Aspect Fill". There are cases where we would want to use other content modes like left, top.

One possible solution we could think of is create assets for non-retina iPhone as well just to create the xibs and then remove the non-retina assets before making the final build.

Has anyone run into a similar issue. Is there a better approach towards this?


Solution

  • You can name your assets without @2x prefix, and require front-facing camera in AppStore. This funny trick(used by Apple's iPhoto by the way) will ensure, that only retina devices will be able to install your game.