---
title: "让一个UIImageView响应点击事件呢"
author: "董瑞龙"
date: "2011-11-13T19:25:37Z"
tags: []
categories: ["移动开发"]
slug: "uiimageview"
draft: false
lastmod: "2011-11-13T19:25:37Z"
id: 1255381
url: "https://rylan.iteye.com/blog/1255381"
---

http://www.cnblogs.com/luyinghuai/archive/2011/07/28/2119421.html

怎么让一个UIImageView响应点击事件呢
UIImageView *imageView = ;
imageView.image = ;
imageView.userInteractionEnabled = YES;
UITapGestureRecognizer *singleTap =  initWithTarget:self action:@selector(yourHandlingCode:)];
;
;