James Hall
James Hall

Reputation: 6689

dismissing modalViewController moves main view buttons around iphone

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?

Upvotes: 2

Views: 1227

Answers (1)

Jab
Jab

Reputation: 13775

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];

Upvotes: 1

Related Questions