I added the following code to AppDelegate:
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPhone" bundle:nil];
NSLog(@"iPhone found");
} else {
self.viewController = [[ViewController alloc] initWithNibName:@"ViewController_iPad" bundle:nil];
NSLog(@"iPad found");
}
The userInterfaceIdiom always equal to UIUserInterfaceIdiomPhone when running on iPad 2. My iPad 2 is running on iOS 6.1.3.
I cannot find out what the problem is.
Any help is appreciated!
Thanks in advance!