Possible Duplicate:
How can i load the different xibs for single class depends on current device in iOS?
I developed one universal app.i implemented the application for iPhone .now i have to implement for iPad. i have the complete code regarding data processing is in view controller and view-controller.xib is used for iPhone. how can i use the code for iPad.
I created one xib file(ViewController_iPad.xib) for ipad.when i run the application in iPad im getting the ipad xib but the data is not displaying.
How can i get the data present in viewController?
Thanks in adv..
iOS has a easy method for loading different
NIBfor iPad and iPhone.If you name you
NIBfile like:ViewController~ipad.xiborViewController~iphone.xibiOS will load the appropriate one.I only add the
~ipadview to my universal project, this theNIBwithout out any device specifier will get loaded on all other devices.You can now just load your
UIViewControllerlike :This will also work for images: