I have registered to receive notifications about the status bar frame changes, but they are never received.
Here is how I register for the notification:
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(appWillChangeStatusBarFrameNotification:)
name:UIApplicationWillChangeStatusBarFrameNotification
object:nil];
In some places in our app, we show/hide the status bar with:
[[UIApplication sharedApplication] setStatusBarHidden:maximize
withAnimation:UIStatusBarAnimationSlide];
But it can also change size when personal hotspot is enabled or when in a phone call. Is there any way to get the actual status bar frame when it changes?
This question implies that notifications don't work due to an SDK bug, at least for orientation changes. Is that the reason? Is there any workaround?