ZCAlertSheetBtnView.h 901 B

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