删除UIPopoverController的边框 [英] Remove border for UIPopoverController

查看:96
本文介绍了删除UIPopoverController的边框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个要求,我必须显示一个自定义边框UIPopoverController的弹出窗口视图,而不是默认的黑色主题边框。是否有可能?

I have a requirement where in I have to display a custom border for UIPopoverController's popover view instead of the default "Black theme" border. Is it possible?

我无法使用默认的黑色边框,因为它无法套装应用程序的颜色主题。

I cannot use the default black border because it doesnt suite the application's color theme.

SDK中没有这样做的规定。我也googled看看是否有人遇到了这个问题,如果他们解决了,但没有运气!

There is no provision in the SDK to do this. I have also googled to see if someone else have faced this problem and if they have solved it, but with no luck!

等待建议。

感谢,
Raj

Thanks, Raj

推荐答案

使用UIView解决这个问题, hitTest在主rootViewController的视图中查看接触点是否在该视图外。如果是,则会使用该事件来关闭新popover,否则该事件将被转发到新popover。

Solved this by using UIView and also by overriding the hitTest in the main rootViewController's view to see if the touch point is outside that view. If so, the event will be consumed to dismiss the new popover, otherwise the event will be forwarded to the new popover.

这篇关于删除UIPopoverController的边框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆