In the end, I used 1 class. I set the file owner of both XIB files to the same class.
I just used the xib file name
So I have 2 xibFiles, iPadXib.xib and iPhoneXib.xib
NSString *nibFileName = (iPadVersion) ? @"iPadXib" : @"iPhoneXib"; ViewControllerName *vc = [[ViewControllerName alloc] initWithNibName:nibFileName bundle:nil];
source share