Advertise Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

sdkIQ for iPhone
($4.99)

Your First iPhone App
($1.99)

iPhone Code Generator
($9.99)

Dual Matches
($0.99)

Calcuccino Programmers' Calculator
($2.99)

SDKtoday
(free)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-12-2008, 02:23 PM   #1 (permalink)
Administrator
 
Chris Stewart's Avatar
 
Join Date: Mar 2008
Location: Richmond, VA
Age: 27
Posts: 745
Default 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?
Chris Stewart is offline   Reply With Quote
Old 07-12-2008, 04:49 PM   #2 (permalink)
Registered Member
 
tawpie's Avatar
 
Join Date: Jul 2008
Posts: 328
Default 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)
tawpie is offline   Reply With Quote
Old 07-12-2008, 06:16 PM   #3 (permalink)
Administrator
 
Chris Stewart's Avatar
 
Join Date: Mar 2008
Location: Richmond, VA
Age: 27
Posts: 745
Default Re: Disabling the top status bar for an application

Thanks!
Chris Stewart is offline   Reply With Quote
Old 07-13-2008, 03:38 AM   #4 (permalink)
Yza
New Member
 
Join Date: Jul 2008
Posts: 5
Default 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
Yza is offline   Reply With Quote
Old 07-13-2008, 10:14 PM   #5 (permalink)
New Member
 
Join Date: May 2008
Posts: 38
Default

Quote:
Originally Posted by Yza View Post
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
torynfarr is offline   Reply With Quote
Old 07-13-2008, 10:57 PM   #6 (permalink)
New Member
 
Join Date: May 2008
Posts: 38
Default

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
torynfarr is offline   Reply With Quote
Old 02-24-2009, 12:20 AM   #7 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 15
Cool

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!!!!!!!!
sbwoodside is offline   Reply With Quote
Old 02-24-2009, 12:21 AM   #8 (permalink)
Registered Member
 
Join Date: Feb 2009
Posts: 15
Default

Any of you guys figure this one out?!?!
sbwoodside is offline   Reply With Quote
Old 06-12-2009, 09:23 PM   #9 (permalink)
New Member
 
Join Date: Jun 2009
Posts: 1
Default

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
GregX999 is offline   Reply With Quote
Old 07-09-2009, 10:57 AM   #10 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 33
Default

Quote:
Originally Posted by GregX999 View Post
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
boburs is offline   Reply With Quote
Old 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
Default

Quote:
Originally Posted by boburs View Post
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.
__________________
Have I helped you? Say thanks here.

kalimba interactive
Kalimba is offline   Reply With Quote
Old 07-09-2009, 11:27 AM   #12 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 120
Smile 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.
softwarespecial is offline   Reply With Quote
Old 07-09-2009, 12:04 PM   #13 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 33
Default

Quote:
Originally Posted by Kalimba View Post
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
boburs is offline   Reply With Quote
Old 07-09-2009, 12:05 PM   #14 (permalink)
Registered Member
 
Join Date: Mar 2009
Posts: 33
Default

Quote:
Originally Posted by softwarespecial View Post
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
boburs is offline   Reply With Quote
Old 07-09-2009, 12:10 PM   #15 (permalink)
Registered Member
 
Join Date: Jun 2009
Posts: 120
Smile they have for me even in the simulator when I do it that way.

Quote:
Originally Posted by boburs View Post
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.
softwarespecial is offline   Reply With Quote
Old 07-22-2009, 09:54 AM   #16 (permalink)
Registered Member
 
finefin's Avatar
 
Join Date: Jun 2009
Posts: 170
Default

Quote:
Originally Posted by torynfarr View Post
... 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.
finefin is offline   Reply With Quote
Old 11-02-2009, 10:13 AM   #17 (permalink)
Junior Member
 
Join Date: Oct 2009
Posts: 2
Default 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 View Post
thank you very much. that was exactly what I was looking for.
loboadmin is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to: Change Color/Style of the iPhone Status Bar seanhelmes iPhone SDK Development 8 01-05-2010 04:54 PM
Can't change the color of the status bar mkroll iPhone SDK Development 2 08-06-2008 02:21 PM
Status Bar Not Hiding RegularKid iPhone SDK Development 3 06-24-2008 11:05 PM
Launch mail application from an iphone application satyanarayanagv iPhone SDK Development 1 06-12-2008 03:04 AM

» Advertisements
» Stats
Members: 41,861
Threads: 49,770
Posts: 213,057
Top Poster: BrianSlick (3,139)
Welcome to our newest member, melodizzzy
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 07:01 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0