Andrew
Andrew

Reputation: 3892

Load an iPad nib from an iPhone class

I have a universal app. I wrote all the iPhone code. Noe, rather than rewrite the code exactly the same, I would like to just have specialized xib files. How do I set up this new xib files. How to I create them and how do I link them to my iPhone classes. then how do I load them, meaning make the app pick the iphone xib or the ipad xib

thanks in advace Note, I'm using Xcode 3

Upvotes: 1

Views: 277

Answers (2)

ax123man
ax123man

Reputation: 578

hmm, you say "I have a universal app", but sounds like you mean "I have an iPhone app and want to create a Universal App". If so, here is some info I used the first time I did this:

http://iphonedevelopment.blogspot.com/2010/04/converting-iphone-apps-to-universal.html

Jeff Lamarches stuff is pretty reliable I think.

Upvotes: 0

roydell Clarke
roydell Clarke

Reputation: 66

when you instantiate you controller using alloc init , Use initWithNibName and use the nib or .xib name you to associate with project.

Upvotes: 1

Related Questions