通话结束时工具栏向上移动

发布于 2024-07-09 13:03:49 字数 633 浏览 8 评论 0原文

在通话中,如果用户想要使用我的应用程序,并且通话结束,并且用户仍在应用程序中,则工具栏会向上移动,所有视图都会向上移动,因此工具栏现在有一个空间底端。 基本上“触摸返回通话”的高度都有。 我正在使用工具栏和导航控制器。 导航控制器移动得很好,视图中的所有内容都会相应移动,唯一的问题是工具栏。 所以问题是,是否有一个事件,在调用完成后调用,以便我可以再次设置工具栏的框架? 我尝试了这个委托,但没有成功:

- (void)application:(UIApplication *)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame

只有当工具栏改变方向时才会调用这个委托。

替代文本 http://is.hn/downloads/IMG_0008.PNG 替代文本 http://is.hn/downloads/IMG_0009.PNG

谢谢。

While in a call, if the user wants to use my application, and if the call finishes, and the user is still in the application, the toolbar moves up, well all the view moves up, and so the toolbar now has a space in the bottom. Basically the height "Touch to return to call" has. I am using a toolbar and a navigation controller. The navigation controller moves fine, and everything in the view moves accordingly, the only problem is with the toolbar. So the question is, Is there an event, which is called after the call is finished, so I can set the frame again of my toolbar? I tried this delegate with no luck:

- (void)application:(UIApplication *)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame

This one is called only when the toolbar is changing orientation.

alt text http://is.hn/downloads/IMG_0008.PNG
alt text http://is.hn/downloads/IMG_0009.PNG

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

国产ˉ祖宗 2024-07-16 13:03:50

一般来说,正确设置自动调整大小蒙版应该可以解决问题。 您能否更新屏幕截图以准确显示调整大小问题发生的位置?

In general setting your auto resize masks properly should fix things. Could you update with a screenshot to show exactly where the resizing issues are happening?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文