I'm making a slideshow application in which I want to be able to click the view displaying the slideshow in order to pause or play it. I was hoping that just like with a button, I can send an action to my ViewController and thereby call a function that could for example be called slideshowViewClicked
.
I found someone trying to do something similar with Notifications, but sending an action seems to be the correct way to me.
So would someone be able to explain to me how to send actions from a view to its ViewController just like its done with buttons?
Thanks a lot in advance!