chrismiles / CMPopTipView

Custom UIView for iOS that pops up an animated "bubble" pointing at a button or other view. Useful for popup tips.

Home Page:https://github.com/chrismiles/CMPopTipView

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to add a buton outside of the tooltipview

revolter opened this issue · comments

I'm trying to create a button that overflows the tooltip like this:

screen shot 2015-02-27 at 14 19 30

But the touch event is not called for the upper part of the button. How can I make it work without modifying the library? I tried overriding pointInside:withEvent: but it doesn't get called.

I'm sorry if this doesn't regards this library directly but I can't figure it out how to do it.

If the button is a subview of the popup view, then any region of the button outside of the popup view's bounds won't receive touch events (even though it will be drawn). You have to keep the button inside its parents bounds.

I managed to do that by overriding the pointInside:withEvent: method for the popup's view.