ZCShareSheetView.h 872 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // ZCShareSheetView.h
  3. // XLChat
  4. //
  5. // Created by 张灿 on 2017/11/15.
  6. // Copyright © 2017年 张灿. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void(^shareBtnBlock)(NSString*);
  10. @interface ZCShareActionBtn : NSObject
  11. @property (nonatomic,copy)shareBtnBlock block;
  12. @property (nonatomic,copy)NSString *title;
  13. @property (nonatomic,strong)UIImage *image;
  14. + (ZCShareActionBtn *)actionWithTitle:(NSString *)title image:(UIImage*)image andblock:(shareBtnBlock)block;
  15. @end
  16. @interface ZCShareSheetView : UIView
  17. @property(nonatomic,strong)UIWindow* alertWindow;
  18. //这里只需要设置好每个JWAlertAction的action再以block回调过去就可以了,调价到arr数组中
  19. - (id)initWithTitle:(NSString *)title andShowCancelButton:(BOOL)show andAction:(NSArray<ZCShareActionBtn *> *)arr column:(NSInteger)column;
  20. - (void)show;
  21. - (void)hide;
  22. @end