XHImageViewer是图像查看器,可缩放图像
轻松将其添加到您的项目中。您可以将此功能添加到自己的项目中,XHImageViewer
易于使用。
#import "XHImageViewer.h"
XHImageViewer *imageViewer = [[XHImageViewer alloc] init];
imageViewer.delegate = self;
[imageViewer showWithImageViews:_imageViews selectedView:imageView];
_imageViews is mutiple imageViews(subClass UIImageView or UIImageView)
imageView is user touch imageView to selectedImageView
轻松下载开源网站上的图片。
#import "UIImageView+XHURLDownload.h"
UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(0, 0, 160, 200)]
[imageView setDefaultLoadingView];
[imageView loadWithURL:[NSURL URLWithString:@"http://www.pailixiu.com/IMG_1388.JPG"]];
CocosPods是推荐安装XHPathCover的方法,只需将以下行添加到配置文件
pod 'XHImageViewer', '~> 0.1.0'
XHImageViewer
可在MIT许可下使用。详情请见LICENSE文件。