功能简单轻量,支持轮播,渐进显示消失等。
使用起来更简单,先实例化一个BLImageViewer,可以传入UIImage的数组,以及希望显示的当前图片的index:
-(instancetype)initWithImages:(NSArray*)images
index:(NSInteger)index;
也可以使用下面这个方法传入网络图片URL的数组:
-(instancetype)initWithURLs:(NSArray*)urls
index:(NSInteger)index;
然后在需要的时候展示即可
-(void)present;
源码在这里:
https://github.com/borischou/BLImageViewer