2014-09-10 21 views
0
I just upgraded my Xcode 5 project to Xcode 6 (clean install). But now with 2 viewControllers there is a problem: I try to hide the back button on 1 of them, it goes weird (see the pictures). 

I didn't change anything. Is it possible to fix this somehow? 

http://i60.tinypic.com/2qd096v.png的Xcode 6導航條怪異

http://i60.tinypic.com/npgv0y.png

應該有登記屏幕上的後退按鈕連接的火花標題不應該在那裏。如果我按下導航欄,它會再次進入歡迎屏幕,然後一切恢復正常。

回答

0

好吧我找到了解決方案。

在您推送到新控制器的文件中,您必須設置它隱藏後退按鈕。

controller.navigationItem.hidesBackButton = YES; [self.navigationController pushViewController:controller animated:YES];