MWPhotoBrowser的简单使用
最近做的项目有类似朋友圈动态的功能,其中需求点击图片可以浏览。然后就用了下MWPhotoBrowser这个第三方图片浏览器,感觉很不错。
MWPhotoBrowser 的github链接 https://github.com/mwaterfall/MWPhotoBrowser
1、 创建MWPhotoBrowser
要使用initWithDelegate方法,要遵循MWPhotoBrowserDelegate协议
//创建MWPhotoBrowser ,要使用initWithDelegate方法,要遵循MWPhotoBrowserDelegate协议
MWPhotoBrowser *browser = [[MWPhotoBrowser alloc] initWithDelegate:self];
//设置当前要显示的图片
[browser setCurrentPhotoIndex:indexPath.item];
//push到MWPhotoBrowser
[self<