8000 GitHub - qpb/HXPhotoBrowser: 📷 A photo browser that simulates progressive loading 可以模拟渐进式加载的图片浏览器
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

📷 A photo browser that simulates progressive loading 可以模拟渐进式加载的图片浏览器

License

Notifications You must be signed in to change notification settings

qpb/HXPhotoBrowser

 
 

Repository files navigation

HXPhotoBrowser

  • A photo browser that simulates progressive loading

  • Based on SDWebImage

Language

Objective-C

Example

  • fade in list
#import "HXUIButton+SDWebImage.h" or #import "HXUIImageView+SDWebImage.h"

- (void)sd_setFadeImageWithURL:(nullable NSURL *)url;

image

  • style in photoBrowser
typedef NS_ENUM(NSUInteger, HXPhotoLoadType) {
    HXPhotoLoadTypeNormal = 0, //正常样式
    HXPhotoLoadTypeMask, //遮罩层样式
    HXPhotoLoadTypeProgressive //渐进式加载样式
};

typedef NS_ENUM(NSUInteger, HXPhotoProgressType) {
    HXPhotoProgressTypeRing = 0, //圆环网络加载进度
    HXPhotoProgressTypeBar //条状网络加载进度
};

image image image image

Use

HXPhotoBrowserViewController *pb = [HXPhotoBrowserViewController new];
pb.parentVC = self;
pb.photoViewArray = _selectedViewArray.copy;
pb.currentIndex = sender.tag;
pb.urlStrArray = self.urlImgArray;
pb.config.photoLoadType = HXPhotoLoadTypeMask;
pb.config.photoProgressType = HXPhotoProgressTypeRing;
[pb show];

demo中使用的网图时间久了存在着url失效的可能,如果在demo中遇到不显示图片的问题可以换一个图片url,我发现了会及时更新。

License

HXPhotoBrowser is available under the MIT license. See the LICENSE file for more info.

About

📷 A photo browser that simulates progressive loading 可以模拟渐进式加载的图片浏览器

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Objective-C 91.6%
  • Ruby 8.4%
0