Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gsdios/SDPhotoBrowser
A image browser which is easy for using.
https://github.com/gsdios/SDPhotoBrowser
Last synced: about 2 months ago
JSON representation
A image browser which is easy for using.
- Host: GitHub
- URL: https://github.com/gsdios/SDPhotoBrowser
- Owner: gsdios
- Created: 2015-02-19T11:50:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-03T11:49:30.000Z (about 5 years ago)
- Last Synced: 2024-11-09T22:37:39.735Z (2 months ago)
- Language: Objective-C
- Size: 385 KB
- Stars: 1,088
- Watchers: 38
- Forks: 258
- Open Issues: 55
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - SDPhotoBrowser - A image browser which is easy for using. 非常简单易用的图片浏览器,模仿微博图片浏览器动感效果,综合了图片展示和存储等多项功能。【 [Priview](https://camo.githubusercontent.com/a2e87ee4bd1c7b97913e2f9de8b416302032157c/687474703a2f2f63646e2e636f63696d672e636f6d2f6262732f6174746163686d656e742f4669645f31392f31395f3434313636305f3633313963353063333465643633632e676966) 】 (OOM-Leaks-Crash / PhotoViewer)
README
# SDPhotoBrowser
A image browser which is easy for using.
非常简单易用的图片浏览器,模仿微博图片浏览器动感效果,综合了图片展示和存储等多项功能。1. 创建SDPhotoBrowser实例
SDPhotoBrowser *browser = [[SDPhotoBrowser alloc] init];
browser.sourceImagesContainerView = 原图的父控件;
browser.imageCount = 原图的数量;
browser.currentImageIndex = 当前需要展示图片的index;
browser.delegate = 代理;
[browser show]; // 展示图片浏览器
2.实现代理方法
// 返回临时占位图片(即原来的小图)
- (UIImage *)photoBrowser:(SDPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index
{
;
}// 返回高质量图片的url
- (NSURL *)photoBrowser:(SDPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index
{
;
}![](http://cdn.cocimg.com/bbs/attachment/Fid_19/19_441660_6319c50c34ed63c.gif)