Re: Disabling the top status bar for an application
[application setStatusBarHidden:YES animated:NO];
(I put in the appDelegate in applicationDidFinishLaunching)
__________________
"Hardware will break. Software comes broken" Unknown Calc-12E <-- ditch your old calculator. CPR•Choking <-- Review your training, just in case. (Free) All of Nature NW <-- scrolls in x and y, with pinch zoom AND scrollable text to boot. It can be done ('taint easy tho)
I've had the same issue for awhile now and haven't been able to resolve it yet.
As a side note, using [application setStatusBarHidden:YES animated:NO]; will disabled the status bar once your app fully loads. If you edit the info.plist file and add a line as a boolean variable "UIStatusBarHidden" and checkmark it.... the statusbar will be hidden from the get-go (i.e. hidden while default.png displays - before your app is fully loaded)
If anyone can solve this issue with the 20 pixel wide/tall (depending on the view orientation) area under the status bar not being touchable, you'll make my month!
I've taken a screenshot that displays a rough approximation of the area that isn't touchable. I've got code displaying the location of the touch when it's moved. As soon as I slide my finger to the left edge (X=59)... I reach a dead zone. There's a 20 pixel area where the status bar would normally be that doesn't respond to touches.
So that the frame on that second view looks like the culprit (y=20). But if I set it directly it totally screws up the display of all of the views, like haywire. So, that didn't work.
Has anyone figured this out? This is driving me INSANE!!!!!!!!
Not only that, buttons won't respond in that space either. Any fixes yet?
Bob
Are you experiencing this problem in the simulator, on your device, or both? I believe this is a shortcoming, but nevertheless expected behavior, when running on the simulator, but should not happen when running on a device.
go to the info.plist and in there under the key create a new box and type in it UIStatusBarHidden Then to the box beside it. WIch is its Value You ctrl mouse click or right mouse click and then go down the list to Value Type and then from There click Boolean and then have it checked marked. (Note I was taught this by Jason Rogers who is a Member here)
Last edited by softwarespecial; 07-09-2009 at 12:30 PM.
Are you experiencing this problem in the simulator, on your device, or both? I believe this is a shortcoming, but nevertheless expected behavior, when running on the simulator, but should not happen when running on a device.
Yes, thanks for pointing this out. Works fine on the device.
go to the info.plist and in there under the key create a new box and type in it UIStatusBarHidden Then to the box beside it. WIch is its Value You ctrl mouse click or right mouse click and then go down the list to Value Type and then from There click Boolean and then have it checked marked. (Note I was taught this by Jason Rogers who is a Member here)
Yes that also works to hide the Status Bar, but buttons still do not work in that region.
... If you edit the info.plist file and add a line as a boolean variable "UIStatusBarHidden" and checkmark it.... the statusbar will be hidden from the get-go (i.e. hidden while default.png displays - before your app is fully loaded) ...
thank you very much. that was exactly what I was looking for.
I am writing a flash card app and I need all the screen real estate I can get, and that status bar was not working for me. I could make it disappear, but could not get that top bar space back. By editing the info.plist for the app and adding the UIStatusBarHidden = checked. That gave me back the top bar space and worked great.
Thanks. You guys are making it easy on this newbie....
Mark B.
St. Louis
Quote:
Originally Posted by finefin
thank you very much. that was exactly what I was looking for.