pushViewController stuck or viewdidappear fail

送分小仙女□ 提交于 2019-12-08 07:39:24

问题


I am just pushing new VC like this.

[nav pushViewController:vc animated:YES];

However, it doesn't push. The new view reach the state - viewwillappear but viewDidAppear fail to reach sometime. I can swipe back to go back. I have checked new view frame and it is also normal.

View frame is {{0, 64}, {320, 455}}. May I know where bug can occur?


回答1:


Please check if your UIViewController is pushed or presented. If it is pushed then you can push a new UIViewController then you can push new view controller if it is presented then you can not push.



来源:https://stackoverflow.com/questions/29094230/pushviewcontroller-stuck-or-viewdidappear-fail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!