код в Swift
В моем случае я реализовал жест касания для клика по изображению
1 - связать изображение с помощью ViewController, перетаскивая
@IBOutlet weak var imgCapa: UIImageView!
2 - Экземпляр UITapGestureRecognizer в методе ViewDidLoad:
override func viewDidLoad() {
super.viewDidLoad()
//instance the UITapGestureRecognizer and inform the method for the action "imageTapped"
var tap = UITapGestureRecognizer(target: self, action: "imageTapped")
//define quantity of taps
tap.numberOfTapsRequired = 1
tap.numberOfTouchesRequired = 1
//set the image to the gesture
imgCapa.addGestureRecognizer(tap)
}
3 - Создайте метод, чтобы делать то, что вы хотите, когда изображение щелкнуло
func imageTapped(){
//write your specific code for what do you want
//in my case I want to show other page by specific segue
let sumario = self.storyboard?.instantiateViewControllerWithIdentifier("sumarioViewController") as SumarioViewController
self.performSegueWithIdentifier("segueSumarioViewController", sender: sumario)
}