I want to remove status bar from window, and add it again. My View is not in view controller's view hierarchy. It is directly added in window. Question is, while this view appear in window, I want to hide status bar from window, When I remove this view, show it again.
-(void)hideStatusBarFromWindow:(UIWindow*)window
{
//.......
}
Note: I've searched lot, but I've found answered for only view which is added from view controller's view hierarchy. That is my view will show up independent with any of View controller. That means, I couldn't write any code in any view controller and couldn't category view controller.
I've tried this, but couldn't worked for IOS 7(only working for IOS 6)..
[[UIApplication sharedApplication] setStatusBarHidden:YES];