UIAlertView+WX.h 614 B

12345678910111213141516171819202122232425
  1. //
  2. // UIAlertView+WX.h
  3. // SDKSample
  4. //
  5. // Created by liuyunxuan on 2017/2/10.
  6. //
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef void(^WXAlertSureBlock)(UIAlertView *alertView,NSString *text);
  10. @interface UIAlertView (WX)<UIAlertViewDelegate>
  11. ///请求输入内容的alert
  12. + (void)requestWithTitle:(NSString *)title
  13. message:(NSString *)message
  14. defaultText:(NSString *)defaultText
  15. sure:(WXAlertSureBlock)sure;
  16. // 只返回确定的结果
  17. + (void)showWithTitle:(NSString *)title
  18. message:(NSString *)message
  19. sure:(WXAlertSureBlock)sure;
  20. @end