我有这个代码
PlaceViewController *newView = [self.storyboard instantiateViewControllerWithIdentifier:@"PlaceView"]; [self presentViewController:newView animated:YES completion:nil];
我可以改变观点,但是当我回到这个页面的时候,我会推荐这个观点,国家仍然存在.
我试着放这个代码:
[self.navigationController pushViewController:newView animated:YES];
但不做任何事情.
谢谢
解决方法
PlaceViewController *newView = [self.storyboard instantiateViewControllerWithIdentifier:@"storyBoardIdentifier"]; [self.navigationController pushViewController:newView animated:YES];
检查2件事情,
>你的故事板标识符是正确的.>根视图具有导航控制器.
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。