如何在状态栏高度变化时收到通知? [英] How to get notified when the status bar height changes?

查看:101
本文介绍了如何在状态栏高度变化时收到通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

推荐答案

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

Yes. Your app delegate can implement these methods:


  • -application:willChangeStatusBarFrame:

  • -application:didChangeStatusBarFrame:

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

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

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


  • UIApplicationWillChangeStatusBarFrameNotification

  • UIApplicationDidChangeStatusBarFrameNotification

  • UIApplicationWillChangeStatusBarFrameNotification
  • UIApplicationDidChangeStatusBarFrameNotification

这篇关于如何在状态栏高度变化时收到通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆