Black status bar turns white when quitting iPhone app - iphone

I gave my iPhone app a black status bar by adding the UIStatusBarStyleOpaqueBlack / UIStatusBarStyle to the Info.plist file. It works great most of the time. The black status bar shows when the app is running and when the Default.png is being shown.
The issue is when I quit the app by pressing the home button, the status bar becomes a white block while the iPhone's standard quit animation is taking place. I haven't seen this issue with any other apps that use a black status bar.
Am I missing something?

Set the background color of your window to black.
[self.view.window setBackgroundColor:[UIColor blackColor]];

Related

iOS 7 status bar color during push animation.

My app has a solid gray navigation bar, and to fit with the iOS 7 design, want the status bar to be the same color.
To do this, I've set edgesForExtendedLayout = UIRectEdgeNone and extendedLayoutIncludesOpaqueBars = YES and have View controller-based status bar appearance set to YES in my plist. To create the gray color for the status bar, I've set the background color of my MainWindow to be the gray color. This works well except when there's a push or pop animation. During the animation, the status bar flashes color and looks like it has double the intensity of gray. When the animation ends, it changes back to the correct gray color.
Does anyone know what might be happening? Should I be setting the status bar color to match the navigation bar color differently?
Are you using an background image or a tint color to set the background of the navigation bar?
If you use a background image (which it sounds like since you have a solid gray background), you need to make sure it is 64 points tall (128 pixel in retina). If you use the old iOS 6 dimensions (44 points), iOS 7 will fall back and not have it include the status bar.
For details of this behavior, check out Table 5-1, "Treatment of resizable background images for bars at the top of the screen" in the iOS 7 transition documentation.
Also, if this is the case you shouldn't need to set the edgesForExtendedLayout, extendedLayoutIncludesOpaqueBars and View controller-based status bar appearance. You might need it for other stuff - but not for this.
If you want to still support iOS 6, you need to have two different background images, one of iOS 7 and above and a legacy version of iOS 6 and below. That should get you the effect you are looking for.

Overlaps the status bar on view iOS7

I have develop the my iPad application in ios6 but now i want to develop that application in ios7 also , I am using .xib file and I am not using the AutoLayout i want to use the black status bar in my application and i want to make the application similar like ios 6 but the status bar is overlap on the view i use the different code like below link
Link 1
Position of navigation bar for modal view - iOS7
Link 2
iOS 7 - Status bar overlaps the view
Thanks in Advance
wont happen, two options:
use a custom background image that is sized accordingly.. IIRC 44 (for navbar) + 20 (for status bar)
OR
account for the 20 pixels by using a custom view which is black :D
In iOS 7, the status bar is transparent, and other bars—that is, navigation bars, tab bars, toolbars, search bars, and scope bars—are translucent. As a general rule, you want to make sure that content fills the area behind the bars in your app.
Because the status bar is transparent, the view behind it shows through. The style of the status bar refers to the appearance of its content, which includes items such as time, battery charge, and Wi-Fi signal. Use a UIStatusBarStyle constant to specify whether the status bar content should be dark (UIStatusBarStyleDefault) or light (UIStatusBarStyleLightContent):
UIStatusBarStyleDefault displays dark content. Use when light content is behind the status bar.
UIStatusBarStyleLightContent displays light content. Use when dark content is behind the status bar.
In some cases, the background image for a navigation bar or a search bar can extend up behind the status bar. If there are no bars below the status bar, the content view should use the full height of the screen.
In iOS 7, you can control the style of the status bar from an individual view controller and change it while the app runs. If you prefer to opt out of this behaviour and set the status bar style by using the UIApplication statusBarStyle method, add the UIViewControllerBasedStatusBarAppearance key to an app’s Info.plist file and give it the value NO.
For more details about how to use status bar with navigation controller, please refer my answer here.
Try below to do not overwrite status bar:
[navController.navigationBar setBackgroundImage:[UIImage imageNamed:#"navBar.png"] forBarPosition:UIBarPositionTop barMetrics:UIBarMetricsDefault];
A workaround to use the old style status bar is to modify the frame of the main view and shift it down 20px. This will only work on viewWillAppear function but you need to make sure you call this once. This is more of a hack than a solution:
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[self.view setFrame: CGRectMake(self.view.frame.origin.x, self.view.frame.origin.y+20, self.view.frame.size.width, self.view.frame.size.height-20)];
}

Status Bar During App Showing Default.png

I believe this is trivial, but I can't for the life of me, figure this out.
My app has a Black Translucent Status bar. However, when executing the app
(where Default.png is showing), the status bar shown is just a basic grey color.
I want this to be Black Translucent as well.
How?
Thanks
in your info.plist add a Status bar style with value UIStatusBarStyleBlackTranslucent.

splash screen does not resize when toggle in call status bar

I selected toggle in call status bar in Simulator iOS 5 and launched my app, everything works fine except splash screen.
Splash screen does not resize and looks weird
Please help me
Solved!!!
Actually my Default.png is of size 320x460 when i changed to 320x480 issue resolved.
Thanks

Launch image - iPhone application

I have two files for the Launch image for my iPhone app.
Launch.jpg: 320x480
Launch#2x.jpg: 640x960
In my .plist, I have the following key-pairs (amongst others):
Launch image (iPhone) = Launch.jpg
Status bar is initially hidden = NO
However, when my app first launches, the top 20 pixels or so of the Launch image are blocked because of the status bar. How can I tell my Launch image to start below the status bar upon launch?
If you need the status bar to be present on the launch screen, your best option is to modify the launch images themselves to make room for the status bar. As the top 20 pixels is being cut off by the bar, simply modifying your Launch.jpg to have the top 20 pixels blanked-out will do the trick.
If you don't need the status bar on the launch screen but want it on the application, set it to hidden in your Info.plist and have your application do:
[[UIApplication sharedApplication] setStatusBarHidden:NO animated:NO];
once it finishes launching.
You need to set the Status bar is initially hidden to YES to hide the status bar while the splash image is shown.