我的设备是运行8.1.3版本的iPhone 5s。当任何基于位置的应用程序在后台运行时,状态栏就会变得蓝色和大,从而使我的应用程序的视图下降。
是否有任何方法可以确定是否有任何应用程序在后台运行并调整视图的大小?通常这是怎么处理的?
附加的图像。


发布于 2015-04-21 06:01:42
是。应用程序委托可以实现以下方法:
-application:willChangeStatusBarFrame:
-application:didChangeStatusBarFrame:这些本地通知也将发送到默认的通知中心:
UIApplicationWillChangeStatusBarFrameNotification
UIApplicationDidChangeStatusBarFrameNotificationhttps://stackoverflow.com/questions/29763427
复制相似问题