Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get notified when the status bar height changes?

Tags:

iphone

Does the OS send notifications when the status bar height changes? For example that fat in-call status bar?

like image 877
dontWatchMyProfile Avatar asked May 31 '10 15:05

dontWatchMyProfile


People also ask

What are status bar notifications?

Status bar (or notification bar) is an interface element at the top of the screen on Android devices that displays the notification icons, minimized notifications, battery information, device time, and other system status details.


1 Answers

Yes. Your app delegate can implement these methods:

  • -application:willChangeStatusBarFrame:
  • -application:didChangeStatusBarFrame:

and these local notifications will also be sent to the default notification center:

  • UIApplicationWillChangeStatusBarFrameNotification
  • UIApplicationDidChangeStatusBarFrameNotification
like image 153
kennytm Avatar answered Nov 13 '22 09:11

kennytm