UIimageView添加点击事件
2015-09-10 11:17
351 查看
carImage.userInteractionEnabled =
YES;
UITapGestureRecognizer *carImageAction = [[UITapGestureRecognizer
alloc]initWithTarget:self
action:@selector(carImageAction)];
[carImage
addGestureRecognizer:carImageAction];
YES;
UITapGestureRecognizer *carImageAction = [[UITapGestureRecognizer
alloc]initWithTarget:self
action:@selector(carImageAction)];
[carImage
addGestureRecognizer:carImageAction];
相关文章推荐
- UIViewController切换及简单动画
- ActiveMQ的queue以及topic两种消息处理机制分析
- UIWindow简单介绍
- RequireJS API
- 译:Android Platform Guide(Android 平台指南)
- Date Picker和UITool Bar控件简单介绍
- UILabel设置富文本格式显示
- iPhone开发之工具栏控制器UITabBarController的预习
- ios开发日记-1 设置UIImage的渲染模式:UIImage.renderingMode
- iPhone开发之导航控制器的预习——UINavigationController导航控制器的学习
- UIViewController生命周期
- 一步一步学EF系列二【Fluent API的方式来处理实体与数据表之间的映射关系】
- Android 更新UI的两种方法——handler和runOnUiThread()
- Mysql生成UUID
- IOS项目之UICollectionView中Item布局偏移问题
- RequireJS和AMD规范
- java gui 下拉框中项删除按钮
- UISearchBar 的相关属性和delegate
- requireJS的使用
- easyui form load onLoadSuccess 的用法