MJPhotoBrowser.h 689 B

1234567891011121314151617181920212223242526
  1. //
  2. // MJPhotoBrowser.h
  3. //
  4. // Created by mj on 13-3-4.
  5. // Copyright (c) 2013年 itcast. All rights reserved.
  6. #import <UIKit/UIKit.h>
  7. @protocol MJPhotoBrowserDelegate;
  8. @interface MJPhotoBrowser : UIViewController <UIScrollViewDelegate>
  9. // 代理
  10. @property (nonatomic, weak) id<MJPhotoBrowserDelegate> delegate;
  11. // 所有的图片对象
  12. @property (nonatomic, strong) NSArray *photos;
  13. // 当前展示的图片索引
  14. @property (nonatomic, assign) NSUInteger currentPhotoIndex;
  15. // 显示
  16. - (void)show;
  17. @end
  18. @protocol MJPhotoBrowserDelegate <NSObject>
  19. @optional
  20. // 切换到某一页图片
  21. - (void)photoBrowser:(MJPhotoBrowser *)photoBrowser didChangedToPageAtIndex:(NSUInteger)index;
  22. @end