shaioz
shaioz

Reputation: 450

Converting an iPhone NIB to iPad NIB in Xcode 5

I'm working on a universal app.

Well there's this: Converting iPhone xib to iPad xib? and also this: Xcode 4 .xib Create iPad Version.

Am I the only one that still doesn't manage to convert my nib to iPad? I refresh Xcode and under "size" still only see Retina 3.5 and Retina 4. I even used two of the SO questions scripts attached as answers and still remain with the same iPhone nib...

Please help!

Upvotes: 2

Views: 4279

Answers (2)

wspruijt
wspruijt

Reputation: 1067

If you're using Xcode 6/ iOS8, take a look at size classes for this.

Upvotes: 0

StarlitSkies
StarlitSkies

Reputation: 1144

I was just having this same problem! I use that answer all the time regarding editing the file in a text editor and it wasn't working. I did a quick compare and the new difference appears to be this:

targetRuntime="iOS.CocoaTouch" 

It's on the second line. It needs to be changed to

targetRuntime="iOS.CocoaTouch.iPad" 

Then you can select the right Size in Interface Builder :o)

Upvotes: 9

Related Questions