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
http://i60.tinypic.com/npgv0y.png
在注册屏幕上应该有一个后退按钮,因为Sparks标题不应该存在。如果我按下导航栏,它会再次进入欢迎屏幕,然后一切都恢复正常。
答案 0 :(得分:0)
好吧,我找到了解决方案。
在您推送到新控制器的文件中,您必须设置它隐藏后退按钮。
controller.navigationItem.hidesBackButton = YES; [self.navigationController pushViewController:controller animated:YES];