I’ve recently started to create all my projects as universal apps from the start just in case an iPad version is needed by the client in the future. This could end up saving me and my client some valuable time.

However, upon creating a finished iPhone app and running it on my iPad, I was presented with a plain white screen. Clearly the iPad nib was being displayed instead of the iPhone one. So I went into the .plist file for the app, found the “Main nib file base name (iPad)” entry and changed it from “MainWindow_iPad” to “MainWindow_iPhone”. Lo and behold, the iPhone version was displayed.

One problem though, the app was stretched to fill the iPad’s screen and looked a bit strange. I simply wanted to see the iPhone version in the smaller window like normal, non-universal apps. So I went back into my universal project and checked out the build settings in the project info window. In there, I found an entry called “Targeted Device Family” which was set to “iPhone/iPad”. I tried changing it to just “iPhone”, ran the app and was pleased to see my beautifully designed iPhone app displaying as it should in the smaller window on the iPad.

To recap, the steps needed are:

  1. Change the “Main nib file base name (iPad)” entry in the .plist file for the app from “MainWindow_iPad” to “MainWindow_iPhone”.
  2. Change the “Targeted Device Family” in the project info build settings from “iPhone/iPad” to just “iPhone”.

Of course it would be great if the app was built with a proper iPad interface too, but that’s for another day and another budget!


This post is tagged

One Response

  1. Narendar says:

    its very cool .. I was looking for the same .. thanks alot ….

    Can we do this programmatically ? Rewriting the these changes at run time ?

Leave a Reply





Hi, I’m Mark.

I live in Shibuya, Tokyo. I make things that are fun to touch. Mostly for the iPhone and iPad.

 

I'm also CTO of Vinetrade, an exciting new venture. It's a fine wine trading platform (think stock exchange for investing in expensive wines).

 

Feel free to take a look around my app and freelance portfolio. If you like what you see and you're looking for a developer, give me a shout!

 

Email: markymcf@gmail.com

Twitter: @marky_mc

Comments on my work


"When I am not home it is a great app for checking up on Kanji I am not to familiar with. I recommend this app." - **** - Quick Kanji Dictionary, UK App Store review

 

"Easy app to figure out and use ... for it's purpose, it's a very good app to have!" - ***** - Quick Kanji Dictionary, US App Store review

 

"Très bon dictionnaire de kanjis, simple d'utilisation (par les sous-kanjis) et très complet." - **** - Quick Kanji Dictionary, French App Store review

 


"Very useful" - ***** - Quick Kanji Dictionary HD, US App Store review

 


"Very fun to play with friends, the graphics are stunning and colors are great." - ***** - Facemakr, US App Store Review

 


"It is like having a little "Purikura" machine (Japanese sticker photo booth) in your pocket!
All of the illustrations are awesome too!" - ***** - Monstermakr, US App Store Review

Categories