if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
YourViewController *vc = [[[YourViewController alloc]
initWithNibName:@"YourViewController_iPhone" bundle:nil] autorelease];
} else {
YourViewController *vc = [[[YourViewController alloc] initWithNibName:@"YourViewController_iPad"
bundle:nil] autorelease];
}
网友评论