I am having some problems with my app after a phone call. The app hides the status bar.
Here's the scenario:
Phone call in process
Open app
End phone call
Depends on view (sometimes it even acts differently on the same view!) the app no longer hides the status bar. It looks like the view starts just under it.
I tried to solve the problem with this code:
- (void)application:(UIApplication *)application didChangeStatusBarFrame:(CGRect)oldStatusBarFrame
{
UIView *topView = [[[[UIApplication sharedApplication] keyWindow] subviews] lastObject];
if (oldStatusBarFrame.size.height == 40)
{
topView.frame = CGRectMake(topView.frame.origin.x, -20, topView.frame.size.width, topView.frame.size.height);
}
}
Sometimes it does the trick and sometimes not...
Please help me figure what is going on...