Ramotion/expanding-collection

Add target/gesture to AnimatingBarButton

Closed this issue · 3 comments

Hello there,

i'm currently not able to add a target to the AnimatingBarButton appearing on the ExpandingViewController. I just want to execute a segue to another view controller on tap. I think because it's a custom view, i need to handle user interactions by myself, but i don't know how.

Can anybody help?

Thank you very much.

Francis

Hi ober01,
thanks for the quick reply, but i'm not sure if we're on the same page or i just don't get it.
I have problem with the UIBarButtonItem (rightButton) on the ExpandingViewController, not the ExpandingTableViewController. In the demo there is the crosshair icon. Is it possible to add a target to an independent action?

Francis

0ber commented

The problem is rightButton inherited from AnimationBarButton. AnimationBarButton class is not a part of the library, it is just for a quick demo project. If right button inherited from UIBarButtonItem, action would be work