我有一个登录页面,当用户使用用户名或密码登录时,它会跳转到下一个视图控制器。但是有了后退导航,我想跳转到下一个视图控制器,但没有后退按钮导航。
对于这项工作,我编写了代码
HomeViewController *pushWithSlot=[self.storyboard instantiateViewControllerWithIdentifier:@"HomeViewController"];
[self.navigationController pushViewController:pushWithSlot animated:YES];发布于 2015-10-28 14:25:25
您可以使用它们中的任何一个来隐藏后退按钮
[self.navigationItem setHidesBackButton:YES animated:YES]; 或
[self.navigationItem setHidesBackButton:YES];https://stackoverflow.com/questions/33384214
复制相似问题