I think the title is pretty descriptive:
I perform all 3 of these operations on a view, the result is 20 pixels of white space along the left side of the screen (if
Ok, I figured it out. As usual it was the result of more than 1 issue. These problems all occur before I even push the modal view:
First, In my code I was resizing my view like so:
[self.view setFrame: [[UIScreen mainScreen] applicationFrame]];
After you hide the status bar, applicationFrame STILL returns a 320x460 rect (not 320x480). Not sure why, but the following fixes it:
[self.view setFrame: [[UIScreen mainScreen] bounds]];
This gets the whole screen which I lifted from:
Fullscreen UIView with Status bar and Navigation Bar overlay on the top
Second, and in the same line of code, I am not talking to the correct viewController. Since I am in a Navigation Based app, I must talk to the NavigationController. If not, the Navigation Bar never gets the message to move to the top of the screen to cover the space left by the status bar (which resulted in my white space). So one more correction to this line of code:
[[self.navigationController view] setFrame: [[UIScreen mainScreen] bounds]];
Lastly, after all of this, I can push my modal view with confidence.