MJPhotoBrowser.h 908 B

123456789101112131415161718192021222324252627282930313233343536
  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) NSMutableArray * photos;
  13. // 当前展示的图片索引
  14. @property (nonatomic, assign) NSUInteger currentPhotoIndex;
  15. @property (nonatomic, strong) JMSGConversation * conversation;
  16. // 显示
  17. - (void)show;
  18. //撤回消息移除 browser
  19. -(void)retractMsgDismissBrowser;
  20. @end
  21. @protocol MJPhotoBrowserDelegate <NSObject>
  22. - (void)CellPhotoImageReload;
  23. - (void)NewPostImageReload:(NSInteger)ImageIndex;
  24. @optional
  25. // 切换到某一页图片
  26. - (void)photoBrowser:(MJPhotoBrowser *)photoBrowser didChangedToPageAtIndex:(NSUInteger)index;
  27. @end