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:
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.