When you’re being hypnotized, you probably don’t want to see the time or your remaining battery charge – these things cause anxiety. So, you’re going to hide the status bar before you make the window visible. In HypnosisterAppDelegate.m, add a line near the end of application:didFinishLaunchingWithOptions:.
[scrollView addSubview:view]; [scrollView release]; [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:UIStatusBarAnimationFade]; [[self window] makeKeyAndVisible]; return YES; }
Build and run the application again. Notice the status bar fading out after the application launches. You can also hide the status bar before your application appears on the screen by adding a new key-value pair to the application’s info property list. To do this, select the project from the project navigator. Then select the Hypnosister target and the Info pane in the editor area (Figure 6.6). This pane is an editor for the Info.plist file that is a part of every iOS application. (You could select the Hypnosister-Info.plist file from the project navigator, but this interface shows the key-value pairs more clearly.)
Select the last row and click the Key column. Choose Status bar is initially hidden from this list and hit return. In the Value column, change the value to YES. Now the status bar will be hidden as soon as you launch the application.
icon next to the key name. A new row will appear, and a pop-up menu will open in the18.119.136.84