dismissing modalViewController moves main view but

2019-02-27 09:35发布

I'm using presentModalViewController and dismissModalViewController with animation set to YES in both cases. This works fine.

After the modal view is dismissed, all of the content on the main view has moved down what looks like 20px.

Would anyone have any idea why this happens?

1条回答
Lonely孤独者°
2楼-- · 2019-02-27 10:08

Is this app full screen?

I have seen some strange issues regarding apps that hide the status bar. You may try re-hiding the status bar in viewWillAppear or viewWillDisappear on the modal.

[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
查看更多
登录 后发表回答