标签:add 定义 点击 bsp ios ges oid select 添加
XWScanImage 是一个自定义的类, 评论留Q 发
ImageView = [[UIImageView alloc]init];
ImageView.backgroundColor = SetColor(160, 160, 160);
//为UIImageView1添加点击事件
UITapGestureRecognizer *tapGestureRecognizer1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scanBigImageClick1:)];
[ImageView addGestureRecognizer:tapGestureRecognizer1];
#pragma mark 图片的点击放大缩小
-(void)scanBigImageClick1:(UITapGestureRecognizer *)tap{
NSLog(@"点击图片");
UIImageView *clickedImageView = (UIImageView *)tap.view;
[XWScanImage scanBigImageWithImageView:clickedImageView];
}
标签:add 定义 点击 bsp ios ges oid select 添加
原文地址:http://www.cnblogs.com/chenwei-dcav/p/7111330.html