iPhone modalView unwanted offset

Posted by Chonch on Stack Overflow See other posts from Stack Overflow or by Chonch
Published on 2010-03-30T14:42:57Z Indexed on 2010/03/30 14:53 UTC
Read the original article Hit count: 473

Filed under:

Hey,

I have a UITabBarController with three view controllers (from three different types). On one of the view controllers, I want to display a modalViewController. Once a UIButton on the screen is pressed, I perform this action:

AboutViewController *modalViewController = [[AboutViewController alloc] initWithNibName:@"AboutScreen" bundle:nil];
[self presentModalViewController:modalViewController animated:YES]; 

like I always do in order to display a modal view...

The problem is, that while the modal view is being displayed (while it is moving from the bottom of the screen), a 20 pixels grey strip is showing on the bottom of the screen (the same size as the status bar on the top).

Once the modal view reaches its final location, the strip disappears. Needless to say this doesn't look good (to say the least).

Does anybody know why this may happen?

Thanks,

© Stack Overflow or respective owner

Related posts about iphone