BlockAlertController.h 1.3 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // BlockAlertController.h
  3. // MIT_Endorsement
  4. //
  5. // Created by 翟玉磊 on 2018/4/2.
  6. // Copyright © 2018年 翟玉磊. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface BlockAlertController : NSObject
  10. + (UIAlertController *)actionSheetWithTitle:(NSString *)title
  11. message:(NSString *)message
  12. actionTitles:(NSArray *)titles
  13. cancelTitle:(NSString *)cancelTitle
  14. clickAction:(void(^)(UIAlertAction *action))completion;
  15. + (UIAlertController *)alertWithTitle:(NSString *)title
  16. message:(NSString *)message
  17. cancelTitle:(NSString *)cancelTitle
  18. sureTitle:(NSString *)sureTitle
  19. clickAction:(void(^)(UIAlertAction *action))completion;
  20. + (UIAlertController *)alertWithTitle:(NSString *)title
  21. message:(NSString *)message
  22. cancelTitle:(NSString *)cancelTitle
  23. cancelTitleColor:(UIColor *)cancelTitleColor
  24. sureTitle:(NSString *)sureTitle
  25. sureTitleColor:(UIColor *)sureTitleColor
  26. clickAction:(void(^)(UIAlertAction *action))completion;
  27. @end