Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I programmatically make clicking on a UIImageView do something on the iPhone?

I have programmatically added a UIImageView. How do I make it send a message to my controller when the users clicks it, sending itself as the only parameter?

like image 707
Tommy Avatar asked Nov 29 '22 20:11

Tommy


1 Answers

I wouldn't use a UIImageView unless there was some other compelling reason. I'd just use a custom UIButton and use the UIImage as its background.

like image 179
Tom Harrington Avatar answered Dec 06 '22 00:12

Tom Harrington