UIAlertView+NTESBlock.h 646 B

1234567891011121314151617181920212223242526
  1. //
  2. // UIAlertView+NTESBlock.h
  3. // eim_iphone
  4. //
  5. // Created by amao on 12-11-7.
  6. // Copyright (c) 2012年 Netease. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void (^AlertBlock)(NSInteger);
  10. NS_ASSUME_NONNULL_BEGIN
  11. @interface UIAlertView (NTESBlock)
  12. - (void)showAlertWithCompletionHandler: (__nullable AlertBlock)block;
  13. - (void)clearActionBlock;
  14. @end
  15. @interface UIAlertController (NTESBlock)
  16. - (UIAlertController *)addAction:(NSString *)title
  17. style:(UIAlertActionStyle)style
  18. handler:(void (^ __nullable)(UIAlertAction *action))handler;
  19. - (void)show;
  20. @end
  21. NS_ASSUME_NONNULL_END