Can't make image handle clicks

I tried to make an Image View to handle clicks. In IB an Image View can have a handler for Action/Clicked, but when running it didn’t seem like being triggered.

I’ve thought about using a Custom View to enclose the image, and get the click via the Custom View, but no dice - Custom View doesn’t even allow Action/Clicked handlers.

Any suggestion? Thanks!

(BTW the reason I need this is to open a website when an image is clicked)

perhaps…

put the image on a button, instead of an image view

Petey is right, add it to a button. I change the button type to just an image (centered, no text) and turn off “bordered”.

Jon

Cool - thanks Petey and Jon. Didn’t know I can make a button look like a plain image :wink:

(but still making clicked handler available for a pure Image View is kind of confusing)