哪些 iPhone 活动会改变状态栏的高度?
哪些活动/事件会触发 iPhone 上状态栏的高度发生变化?
例如:当在通话过程中访问应用程序时,状态栏的高度 [[UIApplication sharedApplication] statusBarFrame]
为 40,而不是正常高度 20。iOS
模拟器有一个选项 Hardware> ;切换通话状态栏。选择该选项后,将发布 UIApplicationWillChangeStatusBarFrameNotification
和 UIApplicationDidChangeStatusBarFrameNotification
。
哪些用户操作和/或电话操作会导致这种情况发生?除了打电话之外,还有哪些活动会导致状态栏高度超过 20 点?
What activities/events trigger the height of the status bar to change on the iPhone?
For example: When an application is visited while in a phone call the height of the status bar [[UIApplication sharedApplication] statusBarFrame]
is 40 instead of it's normal height of 20.
The iOS Simulator has an option Hardware>Toggle In-Call Status Bar. When that is selected the UIApplicationWillChangeStatusBarFrameNotification
and UIApplicationDidChangeStatusBarFrameNotification
are posted.
What user actions and/or phone actions cause this to happen? Are there any activities besides phone calls that cause the status bar to be taller than 20 pts?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
@Bogatyr 是对的,互联网共享就是其中之一。
音频录制(例如使用 voicememos.app)是另一种。
@Bogatyr is right, Internet tethering is one.
Audio recording (such as with the voicememos.app) is another.
互联网共享变得活跃是另一项此类活动。
Internet tethering becoming active is another such activity.
还可以在地图应用程序中进行路线导航。
当您使用 Google 时,您会在状态栏中看到“Google 地图正在使用您的位置”;当您使用 Apple 地图时,您会在状态栏中看到“触摸以返回导航”。
Also turn-by-turn navigation in a map app.
You'll see "Google Maps is Using Your Location" in the status bar when you use Google, and "Touch to return to Navigation" when you use Apple Maps.