如何在状态栏高度变化时收到通知?

[英]How to get notified when the status bar height changes?


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

当状态栏高度改变时OS是否发送通知?例如胖胖的通话状态栏?

1 个解决方案

#1


34  

Yes. Your app delegate can implement these methods:

是。您的app委托可以实现以下方法:

  • -application:willChangeStatusBarFrame:
  • - 应用:willChangeStatusBarFrame:
  • -application:didChangeStatusBarFrame:
  • - 应用:didChangeStatusBarFrame:

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

并且这些本地通知也将发送到默认通知中心:

  • UIApplicationWillChangeStatusBarFrameNotification
  • UIApplicationWillChangeStatusBarFrameNotification
  • UIApplicationDidChangeStatusBarFrameNotification
  • UIApplicationDidChangeStatusBarFrameNotification

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.itdaan.com/blog/2010/05/31/f252e78861dafdca65cba89e5ff35080.html



 
© 2014-2018 ITdaan.com 粤ICP备14056181号