Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Press UIBarButtonItem programmatically in swift?

Tags:

I have a bar button item that I want to press programmatically, basically the equivalent of

buttonObj.sendActionsForControlEvents(UIControlEvents.TouchUpInside)

but as a bar button item

edit: I forgot to mention, I can't simply call the action method for the button since I'm using the SWRevealViewController library and using their "revealToggle:" action on the bar button item, which I'm not sure how to call on its own.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!