我正在尝试使用
但对于通用应用程序
我得写。。
if([[UIDevice current]UserInterfaceIdiom] == UIUserInterFaceIPad)
{
MyViewController *controller = [[MYViewController alloc]initWithNibName:@"MyViewController_IPad"];
[self.navigationCOntroller pushViewController:myViewController animated:YES];
else{
MyViewController *controller = [[MYViewController alloc]initWithNibName:@"MyViewController_IPhone"];
[self.navigationCOntroller pushViewController:myViewController animated:YES];
}
我可以得到解决方案来克服“if”条件并避免设备检查..