Skip to content

🖼 Browse the big picture, click on the image to see the big picture, click again to restore the original size 浏览大图,点击图片查看大图,再次点击还原原始尺寸

License

Notifications You must be signed in to change notification settings

qxuewei/XWSacnBigImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XWSacnBigImage

点击图片查看大图,再次点击还原原始尺寸


显示效果 </br>


使用方法:
1.导入XWScanImageClass </br>
2.为UIImageView增加点击事件,并且开始用户交互属性</br>

// - 浏览大图点击事件
//为UIImageView1添加点击事件
UITapGestureRecognizer *tapGestureRecognizer1 = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(scanBigImageClick1:)];
[_ImageView1 addGestureRecognizer:tapGestureRecognizer1];
//让UIImageView和它的父类开启用户交互属性
[_ImageView1 setUserInteractionEnabled:YES];
3.在监听事件方法中调用类方法 scanBigImageWithImageView
// - 浏览大图点击事件
-(void)scanBigImageClick1:(UITapGestureRecognizer *)tap{
NSLog(@"点击图片");
UIImageView *clickedImageView = (UIImageView *)tap.view;
[XWScanImage scanBigImageWithImageView:clickedImageView];
}

About

🖼 Browse the big picture, click on the image to see the big picture, click again to restore the original size 浏览大图,点击图片查看大图,再次点击还原原始尺寸

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published