2011-07-29 28 views

回答

1

你使用UINavigationBar的用的UIBarButtonItem一起? 如果是這樣,那麼只是隨便

[self.navigationController pushViewController:theViewCntrlrYouWant animated:NO]; 

應該符合您的願望。

(根據Suppi的觀察編者) 如果沒有導航欄,然後像水木清華:

YourViewController * first = [[YourViewController alloc] init]; 
[self presentModalViewController:first animated:NO]; 
[first release]; 
+0

我沒有UINavigationBar的,我使用的是UIToolBar用的UIBarButtonItem一起。我使用了上面的代碼,我得到[MapScreen presentViewController:animated:]:無法識別的選擇器發送到實例 – Suppi

+0

嗨,我得到它的工作,你需要使用,自我presentModalViewController:第一次動畫:NO];代替。 – Suppi

+0

我的不好,這是一個元碼,讓我們說。 – makaron