MFPictureBrowser 0.6.2

MFPictureBrowser 0.6.2

GodzzZZZGodzzZZZ 维护。



 
依赖项目
YYWebImage>= 0
YYImage/WebP>= 0
MFCategory>= 0
 

  • 作者
  • GodzzZZZ

MFPictureBrowser

类似于即时应用的图片浏览器效果(支持 PNG, JPG, GIF, WebP),参考:ESPictureBrowser,已提交 PR,但原作者可能不再维护,所以我重新编写,并修复了一些 bug。

效果图

集成方式

  • cocoapod
pod 'MFPictureBrowser'

使用方式

  • 导入
#import <MFPictureBrowser.h>
  • 初始化并设置代理
MFPictureBrowser *brower = [[MFPictureBrowser alloc] init];
brower.delegate = self;
  • 展示
//展示图片
[brower showImageFromView:(fromView) picturesCount:(picturesCount) currentPictureIndex:(currentPictureIndex)];

实现代理方法

//必须实现
- (FLAnimatedImageView *)pictureView:(MFPictureBrowser *)pictureBrowser imageViewAtIndex:(NSInteger)index {
    ...
}

- (id<MFPictureModelProtocol>)pictureBrowser:(MFPictureBrowser *)pictureBrowser pictureModelAtIndex:(NSInteger)index {
    ...
}

具体使用方式参见 Demo