我有UINavigationController和UIViewController,然後我推另一個viewcontroller,但我不需要鏈接到NavigationBar上的前一個。對這樣的事情有什麼正確的做法?推UIViewController沒有鏈接到上一個UINavigationBar
謝謝!
我有UINavigationController和UIViewController,然後我推另一個viewcontroller,但我不需要鏈接到NavigationBar上的前一個。對這樣的事情有什麼正確的做法?推UIViewController沒有鏈接到上一個UINavigationBar
謝謝!
使用它取決於UINavigationBar的
@property(nonatomic,assign) BOOL hidesBackButton; // If YES, this navigation item will hide the back button when it's on top of the stack.
謝謝,它幫助了我! – 2012-04-04 13:16:16
@vkasci歡迎:) – Vignesh 2012-04-04 13:16:41
的財產你想用的控制器,做你展示後什麼。如果它會以其他方式被解僱,你可以使它變爲模態而不是推它。如果它將成爲導航堆棧中的新第一項,則可以替換現有的控制器。
感謝您的評論!我怎樣才能在不損壞視圖樹的情況下進行更換?我試圖使用[code] self.navigationController setViewControllers:arrayWithOneTargetController [/ code],但它沒有幫助,我收到一個異常,樹被破壞。 – 2012-04-04 13:20:30
你不想回彈到根視圖控制器? – Hiren 2012-04-04 13:11:13