Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有人知道通话状态栏的大小吗?我正在开发一个应用程序,主要在手机通话时使用,并希望制作 UI,以便在通话状态栏打开时可以使用。
谢谢
最好的办法是注册 UIApplicationWillChangeStatusBarFrameNotification 的通知。您收到的通知会告诉您状态栏的大小,以便您现在拥有正确的东西,当您旋转到横向时正确的东西,当苹果改变状态栏的大小时正确的东西等等。