views:

510

answers:

1

So im using presentModalViewController and dismissModalViewController with animation set to "YES" in both cases. Which works fine.

However, 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 on what could be going on with that?

+1  A: 

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];
Jab
thanks, that as the problem, it was full screen. i had missed that part.
James Hall