프로젝트
GitHub에서 보기
andreagiavatto/AGPhotoBrowser
소개
A photo browser for iOS inspired by Facebook.
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalAGPhotoBrowser
A photo browser for iOS6 and iOS7 inspired by Facebook iOS app.
Demo project included.
It currently supports:
- Any number of images through a data source
- Optional title and description (with support for long description through a 'See more' button)
- Full screen view
- Pinch to zoom in/out
- Double tap to zoom in/out
- Orientation changes
- "Swipe up/down" to hide the photo browser
- "Done/Action buttons" to dismiss the browser or perform a few operations on the selected image
Install
The suggested way to install the component is using CocoaPods, just include the following line in your Podfile to get the latest version:
pod "AGPhotoBrowser"
Usage
There is a demo project included that shows how to use the photo browser.
- import
AGPhotoBrowserView.hin your class - create a new instance of
AGPhotoBrowserViewand set the delegate and the dataSource to your class - implement
- (NSInteger)numberOfPhotosForPhotoBrowser:(AGPhotoBrowserView *)photoBrowserand- (UIImage *)photoBrowser:(AGPhotoBrowserView *)photoBrowser imageAtIndex:(NSInteger)indexmethods from the datasource - (optional) provide a title and a description for each image implementing
- (NSString *)photoBrowser:(AGPhotoBrowserView *)photoBrowser titleForImageAtIndex:(NSInteger)indexand- (NSString *)photoBrowser:(AGPhotoBrowserView *)photoBrowser descriptionForImageAtIndex:(NSInteger)index - show the browser calling the
- (void)showor- (void)showFromIndex:(NSInteger)initialIndexmethods - dismiss the photo browser with a completion block calling
- (void)hideWithCompletion:( void (^) (BOOL finished) )completionBlock
TO-DO
- add pinch to zoom gesture on images (from 1.0.4, thanks @dtsolis)
- support orientation changes (from 1.0.6)
관련 프로젝트 살펴보기
불러오는 중…