123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #import <UIKit/UIKit.h>
- @class SDButton, SDPhotoBrowser;
- @protocol SDPhotoBrowserDelegate <NSObject>
- @required
- - (UIImage *)photoBrowser:(SDPhotoBrowser *)browser placeholderImageForIndex:(NSInteger)index;
- @optional
- - (NSURL *)photoBrowser:(SDPhotoBrowser *)browser highQualityImageURLForIndex:(NSInteger)index;
- - (void)photoBrowser:(SDPhotoBrowser *)browser selectIndex:(NSInteger)index;
- @end
- @interface SDPhotoBrowser : UIView <UIScrollViewDelegate>
- @property (nonatomic, weak) UIView *sourceImagesContainerView;
- @property (nonatomic, assign) int currentImageIndex;
- @property (nonatomic, assign) NSInteger imageCount;
- @property (nonatomic, weak) id<SDPhotoBrowserDelegate> delegate;
- - (void)show;
- @end
|