?[废弃]一个集成简单交互效果不错的图片浏览器, 内存以及CPU占用低,顺滑自然
类似于<即刻>应用的图片浏览器效果(支持PNG, JPG, GIF, WebP).
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