Simply add ~iphone and ~ipad suffix to your xib files and iOS automatically load correct xib depending on device (iPad or iPhone) where application is run. For example: if you have view controller with name ViewController
then xibs should be named:
ViewController~iphone.xib
ViewController~ipad.xib
To create new object use: ViewController *viewController = [[ViewController alloc] init];