STPhotoBrowser
STPhotoBrowser copied to clipboard
高仿新浪微博的图片浏览器,极佳的编写方式,易扩展,低耦合,欢迎大家使用
Incompatible block pointer types sending 'void (^)(NSInteger, NSInteger)' to parameter of type 'SDWebImageDownloaderProgressBlock _Nullable' (aka 'void (^)(NSInteger, NSInteger, NSURL * _Nullable __strong)')
通用性问题
目前这种写法比较适合用在所有图片在同一个 view 上,不适合在不同的 view 上的场景,比如 TableView、CollectionView
就是在scollerview 上加一些照片 UIImageView \* view = sender.view; HZPhotoBrowser *browserVc = [[HZPhotoBrowser alloc] init]; browserVc.sourceImagesContainerView = ScrollView; browserVc.imageCount = _srcStringArray.count; browserVc.currentImageIndex = view.tag; // 代理 browserVc.delegate = self; // 展示图片浏览器 [browserVc...
图片排列的问题
可以像新浪微博或者微信朋友圈那样根据图片的数量排列出最合适的位置吗?比如4张图片时是2行2列这样子