BLImageViewer
功能簡單輕量,支持輪播,漸進(jìn)顯示消失等。
使用起來更簡單,先實(shí)例化一個(gè)BLImageViewer,可以傳入U(xiǎn)IImage的數(shù)組,以及希望顯示的當(dāng)前圖片的index:
-(instancetype)initWithImages:(NSArray*)images
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? index:(NSInteger)index;
也可以使用下面這個(gè)方法傳入網(wǎng)絡(luò)圖片URL的數(shù)組:
-(instancetype)initWithURLs:(NSArray*)urls
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? index:(NSInteger)index;
然后在需要的時(shí)候展示即可
-(void)present;
源碼在這里:
https://github.com/borischou/BLImageViewer