pushViewController stuck or viewdidappear fail

2019-06-08 10:33发布

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条回答
做个烂人
2楼-- · 2019-06-08 11:05

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.

查看更多
登录 后发表回答