views:

153

answers:

1

In the simulator I went to Hardware menu and activated the simulation of bigger status bar during phone call.

Now, I tried to make a view in my nib that takes up the whole screen. As soon as the status bar gets smaller, I want my view to get bigger, so it uses that space up there.

But regardless of any autoresizing settings, my view will keep pressed down after that status bar gets smaller. There is a empty slot left where the status bar was after hanging up the call.

What's that actually supposed to be? Is my app recognizing the status bar as a view, or is the status bar indeed making my screen smaller? I mean...does it mess around with my views as if it was a view itself, or do my views not know about a status bar, but about a smaller screen size when the status bar gets bigger?

How do you get your views big again when the status bar returns to normal height?

A: 
[view setFrame:[[UIScreen mainScreen] applicationFrame]];

or if that doesn't work

[view setFrame:[[UIScreen mainScreen] bounds]];
Corey Floyd