Name your xib file for iPad BookViewController ~ ipad.xib and iPhone one BookViewController ~ iphone.xib . Then download the nib file as usual:
BookViewController *viewController = [[BookViewController alloc] initWithNibName:@"BookViewController" bundle:nil]; [self presentModalViewController:viewController animated:YES];
When the application launches on the iPad, ~ ipad xib will be automatically downloaded. If the application runs on iPhone, ~ iphone xib will be automatically downloaded.
Note that the suffixes ~ ipad and ~ iphone are case sensitive. If you name it ~ iPad, for example, you will get a runtime exception if the nib file is not found.
source share