0
我正在通用稱謂。它有一個表格視圖。如果用戶點擊表格單元格,並且用戶選擇了iPad,則必須轉到另一個專爲iPad設計的視圖。我怎樣才能使它成爲可能?我做如下:通用應用程序中的iPad視圖
TwitterDetailViewController *detailViewController = [[TwitterDetailViewController alloc] initWithNibName:@"TwitterDetailViewController" bundle:nil];
detailViewController.detaildict= Detaildict;
[self.navigationController pushViewController:detailViewController animated:YES];
if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
{
iPadView *iPadview = [[iPadView alloc] initWithNibName:@"iPadView" bundle:nil];
[self.navigationController pushViewController:iPadview animated:YES];
}
detailViewController應該是全推或只在iPhone的情況下? – alinoz