views:

18

answers:

1
+1  Q: 

find xib for iPad

Hi,

I load my xib files through: initWithNibName programatically. If I set something like: [[LoginController alloc] initWithNibName:@"LoginController" bundle:nil];

Shouldn't it load LoginController.xib if it is executed on iPhone and search for LoginController-iPad.xib on the iPad? This is not happening at my code, do I have to select the right one manually or is something going wrong?

Thanks in advance!

+1  A: 

No, there is nothing in the documentation that suggests "-iPad" is a valid resource-like modifier for initWithNibName:, or that initWithNibName: supports modifiers at all.

BTW, .xib files are compiled to .nib files by Xcode, so the application never sees a .xib.

Shaggy Frog