 |
 |
|
 |
07-12-2008, 02:23 PM
|
#1 (permalink)
|
|
Administrator
Join Date: Mar 2008
Location: Richmond, VA
Age: 27
Posts: 745
|
Disabling the top status bar for an application
Can anyone tell me (or point me to some documentation) how I can disable the top status bar while my application is running?
|
|
|
07-12-2008, 04:49 PM
|
#2 (permalink)
|
|
Registered Member
Join Date: Jul 2008
Posts: 328
|
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)
|
|
|
07-12-2008, 06:16 PM
|
#3 (permalink)
|
|
Administrator
Join Date: Mar 2008
Location: Richmond, VA
Age: 27
Posts: 745
|
Re: Disabling the top status bar for an application
Thanks!
|
|
|
07-13-2008, 03:38 AM
|
#4 (permalink)
|
|
New Member
Join Date: Jul 2008
Posts: 5
|
Re: Disabling the top status bar for an application
Hi!
for disabling status bar I use the same method
[application setStatusBarHidden:YES animated:NO];
but ?!? Is your touchesBegan working properly in area of this hidden status bar ?
http://www.iphonedevsdk.com/forum/vi....php?f=7&t=827
I started this thread day ago, but no one answer me
|
|
|
07-13-2008, 10:14 PM
|
#5 (permalink)
|
|
New Member
Join Date: May 2008
Posts: 38
|
Quote:
Originally Posted by Yza
Hi!
for disabling status bar I use the same method
[application setStatusBarHidden:YES animated:NO];
but ?!? Is your touchesBegan working properly in area of this hidden status bar ?
http://www.iphonedevsdk.com/forum/vi....php?f=7&t=827
I started this thread day ago, but no one answer me 
|
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!
-Toryn
|
|
|
07-13-2008, 10:57 PM
|
#6 (permalink)
|
|
New Member
Join Date: May 2008
Posts: 38
|
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.
-Toryn
|
|
|
02-24-2009, 12:20 AM
|
#7 (permalink)
|
|
Registered Member
Join Date: Feb 2009
Posts: 15
|
I've got exactly the same problem. I tried debuggin with UIViewExtras and found that even after hiding the status bar I still have this:
Code:
- (void)viewWillAppear:(BOOL)animated {
NSLog(@"frame before = %@", NSStringFromCGRect([[UIApplication sharedApplication] statusBarFrame]));
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
NSLog(@"frame after = %@", NSStringFromCGRect([[UIApplication sharedApplication] statusBarFrame]));
// later...
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
NSLog(@"\n%@", [self.view.window description]);
gives:
Code:
2009-02-24 01:18:16.539 Unitron[62822:20b] frame before = {{0, 0}, {320, 20}}
2009-02-24 01:18:16.540 Unitron[62822:20b] frame after = {{0, 0}, {0, 0}}
+ UIWindow retain:2 - tag:0 - bgcolor:(r:255 g:255 b:255 a:1.00)
bounds: x:0 y:0 w:320 h:480 - frame: x:0 y:0 w:320 h:480 - center: x:160, y:240
++ UILayoutContainerView retain:4 - tag:0 - bgcolor:(r:0 g:0 b:0 a:1.00)
bounds: x:0 y:0 w:320 h:460 - frame: x:0 y:20 w:320 h:460 - center: x:160, y:250
....
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!!!!!!!!   
|
|
|
02-24-2009, 12:21 AM
|
#8 (permalink)
|
|
Registered Member
Join Date: Feb 2009
Posts: 15
|
Any of you guys figure this one out?!?!
|
|
|
06-12-2009, 09:23 PM
|
#9 (permalink)
|
|
New Member
Join Date: Jun 2009
Posts: 1
|
Has anyone figured out this 20 pixel dead space issue in the four months since the last post?
I just ran into it myself...
Greg
|
|
|
07-09-2009, 10:57 AM
|
#10 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Posts: 33
|
Quote:
Originally Posted by GregX999
Has anyone figured out this 20 pixel dead space issue in the four months since the last post?
I just ran into it myself...
Greg
|
Not only that, buttons won't respond in that space either. Any fixes yet?
Bob
|
|
|
07-09-2009, 11:12 AM
|
#11 (permalink)
|
|
Pro. Game Developer
iPhone Dev SDK Supporter
Join Date: Feb 2009
Location: żLa Islas Hermosas?
Posts: 1,669
|
Quote:
Originally Posted by boburs
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.
|
|
|
07-09-2009, 11:27 AM
|
#12 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 120
|
go to the info.plist and in there...
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 11:30 AM.
|
|
|
07-09-2009, 12:04 PM
|
#13 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Posts: 33
|
Quote:
Originally Posted by Kalimba
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.
Bob
|
|
|
07-09-2009, 12:05 PM
|
#14 (permalink)
|
|
Registered Member
Join Date: Mar 2009
Posts: 33
|
Quote:
Originally Posted by softwarespecial
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.
Bob
|
|
|
07-09-2009, 12:10 PM
|
#15 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 120
|
they have for me even in the simulator when I do it that way.
Quote:
Originally Posted by boburs
Yes that also works to hide the Status Bar, but buttons still do not work in that region.
Bob
|
they have for me even in the simulator when I do it that way.
|
|
|
07-22-2009, 09:54 AM
|
#16 (permalink)
|
|
Registered Member
Join Date: Jun 2009
Posts: 170
|
Quote:
Originally Posted by torynfarr
... 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.
|
|
|
11-02-2009, 10:13 AM
|
#17 (permalink)
|
|
Junior Member
Join Date: Oct 2009
Posts: 2
|
This is 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.
|
|
|
|
 |
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
» Advertisements |
» Online Users: 423 |
| 35 members and 388 guests |
| AdamSubach, aderrington, benoitr007, bensj, BrianSlick, Danneman, dev123, ErichGS, GreatWizard, gustavo7sexton, gw1921, HemiMG, iSDK, Jeremy1026, lifeCoder45, mattiahalter, melodizzzy, mriphoneman, newchucky, Ovidius, Piequanna, pofak, qilin, Racker, raheel, rendezvouscp, riq, Sega dude, socals, timle8n1, Whitehk, ZunePod |
| Most users ever online was 965, 06-30-2010 at 04:26 AM. |
» Stats |
Members: 41,861
Threads: 49,770
Posts: 213,057
Top Poster: BrianSlick (3,139)
|
| Welcome to our newest member, melodizzzy |
|