UIImageView 添加手势实现点击
来源:互联网 发布:阿里云ubuntu镜像下载 编辑:程序博客网 时间:2024/04/30 13:55
//创建控件
UIImageView arrowImgView = [[UIImageView alloc] init];
[arrowImgView setImage:[UIImage imageNamed:@"arrow_1"]];
[arrowImgView setUserInteractionEnabled:TRUE]; //设置UIImageView允许点击
[self addSubview:arrowImgView];
//添加手势
UITapGestureRecognizer *singleTap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(onClickImage)];
[arrowImgView addGestureRecognizer:singleTap];
[singleTap release];
-(void)onClickImage{
//点击操作内容
}
- UIImageView 添加手势实现点击
- 给UIimageView添加UITapGestureRecognizer手势点击事件
- IOS UIImageView 点击手势
- UIImageView 添加手势
- UIimageView添加点击事件
- UIImageView添加点击事件
- 为 UIImageView 添加Tap手势
- UIimageview添加手势,无法响应手势事件
- 给UIimageView添加手势点击事件后获取其本身的方法
- 给UIImageView添加点击效果
- 给UIImageView添加点击事件
- 给UIImageView添加点击事件
- iOS:UIImageView添加点击事件
- 给UIImageView添加点击事件
- UIImageView添加手势不响应的原因
- UIImageView 怎么添加一个单击手势
- UIImageView iPhone中用手势实现图片操作
- iOS7开发:为UIImageView添加点击事件
- CF Round#168
- 【PHP HTML DOM解析器】PHP Simple HTML DOM Parser
- C++ - 对象模型之 类对象在执行时是如何生成的
- 电脑小知识(一)
- 奋斗黑马程序员----Java之static关键字详解
- UIImageView 添加手势实现点击
- CF Round#169
- linux下 rm 删除非空目录
- excel的常用技巧
- mysql innodb表空间损坏补救方法
- mysql 分库分表
- Android中的DI(依赖注入)框架--RoboGuice
- Symmetric NAT and It’s Problems
- Lambdas, auto, and static_assert: C++0x Features in VC10, Part 1