Jay Graves

iOS Universal App to Device Specific App.

I recently had the need to deuniversalify an iOS app. This is a simple process but it took me longer than anticipated to find the right change to make.  At first I thought it would be as simple as changing the UIDeviceFamily from “iPhone/iPad” back to “iPhone”.  That had no effect on the how the binary ran on the iPad.  The iPad still ran the iPad specific code.

I had to remove the NSMainNibFile~iPad and make sure that NSMainNibFile was pointing to the iPhone specific .xib.

Then the app ran on the iPad using the iPhone screen size, exactly what I was after.

At the time of this writing, Google returns no results for “deuniversalify”. That means I invented it :)