How do you make an UIImageView on the storyboard clickable (swift)

前端 未结 7 635
后悔当初
后悔当初 2020-12-13 02:39

I am new to swift (and Xcode development in general) and I was wondering how to make an ImageView on the storyboard clickable. What I\'m trying to do is make it so when its

7条回答
  •  有刺的猬
    2020-12-13 02:50

    I would suggest creating a UIButton with no text and making it the image you want, instead. After doing that, you can CTRL-drag from the image to the view controller you want to segue to. Or you can just make an IBAction in your view controller's code that manually segues.

提交回复
热议问题