0
我是iphone新手,我需要一些指導推視圖。我有以下應用場景「按下按鈕 - >切換視圖(包含一個表格) - >按表格單元 - >切換視圖」。如何推iphone的觀點?
切換當我按下我使用下面的代碼的按鈕:
MapView *screen = [[MapView alloc] initWithNibName:nil bundle:nil];
screen.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
[self presentModalViewController:screen animated:YES];
[screen release];
然後推另一種看法,我想使用此代碼(但它不工作 - 和IM問爲什麼?)
Newclass *nextController = [[Newclass alloc] initWithItem:theItem];
[self.navigationController pushViewController:nextController animated:YES];
[nextController release];
你正在使用self.navigationController我猜你的mapview沒有導航控制器 – Matt