iPhone:通话状态栏期间的自定义视图布局
我有一个自定义视图,我在其中在方块内绘制一些数字。所有这一切都是使用 Quartz 编程完成的。在通话过程中,状态栏显示在顶部,我的视图转移到底部。到现在为止,还好。但是,当我尝试根据方块上的触摸事件重新绘制视图时,方块的位置被搞乱并被绘制在不同的位置。我知道我必须动态导出这些正方形的坐标,而不是固定的坐标。但我如何知道状态栏正在显示或缩小以进行适当的视图更改?
我尝试使用 application:willChangeStatusBarFrame: 处理该事件,但它从未被调用。如何捕捉状态栏状态?
I have a custom view, where in I draw some numbers inside squares. All this is done using Quartz programming. During an active call, the status bar gets displayed at the top and my view shifts to the bottom. Until now, it's fine. But when I tried to redraw the view based on touch events on the squares, the position of the squares is messed up and gets drawn in a different position. I know that I have to dynamically derive the coordinates of these squares instead of having a fixed coordinates. But how do I know that the status bar is being displayed or shrinked to make appropriate view changes?
I tried to handle the event using application:willChangeStatusBarFrame:, but it never got invoked. How to catch the status bar status?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看
如何在通话期间将视图定位在绿条下方打电话?
Check this out
How to position view below green bar during phone call?