- 授权协议: MIT
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/coder-zwz/HJPhotoBrowser
- 软件文档: https://github.com/coder-zwz/HJPhotoBrowser/blob/master/README.md
- 官方下载: https://github.com/coder-zwz/HJPhotoBrowser/archive/master.zip
软件介绍
HJPhotoBrowser 是一款 iOS 高性能图片浏览器,依赖 SDWebImage,支持浏览本地图片及网络图片,支持 CocoaPods 安装。
主要功能
图片浏览
Installation
CocoaPods
pod 'HJPhotoBrowser' # Podfile
代码示例
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath
{
NSInteger count = _dailyModel.picArray.count;
HJPhotoBrowser *browser = [[HJPhotoBrowser alloc] init];
browser.sourceImagesContainerView = collectionView;
browser.imageCount = count;
browser.currentImageIndex = indexPath.row;
browser.delegate = self;
[browser show];
}
#pragma 占位图
-(UIImage *)photoBrowser:(HJPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index
{
return [UIImage imageNamed:@"error_image"];
}
#pragma 图片的地址
-(NSURL *)photoBrowser:(HJPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index
{
return [NSURL URLWithString:_dailyModel.picArray[index]];
}
Design for Hackers
David Kadavy / Wiley / 2011-10-18 / USD 39.99
Discover the techniques behind beautiful design?by deconstructing designs to understand them The term ?hacker? has been redefined to consist of anyone who has an insatiable curiosity as to how thin......一起来看看 《Design for Hackers》 这本书的介绍吧!
CSS 压缩/解压工具
在线压缩/解压 CSS 代码
HEX HSV 转换工具
HEX HSV 互换工具
