Remove border for UIPopoverController

后端 未结 2 1480
盖世英雄少女心
盖世英雄少女心 2020-12-20 06:33

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?

<
2条回答
  •  天涯浪人
    2020-12-20 07:00

    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.

提交回复
热议问题