UIViewController+Alert.h 649 B

123456789101112131415161718192021
  1. //
  2. // UIViewController+Alert.h
  3. // YiJian
  4. //
  5. // Created by Future on 2018/6/22.
  6. // Copyright © 2018年 Future. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIViewController (Alert)
  10. /**
  11. 显示一个弹窗
  12. */
  13. - (void)showAlertWithTitle:(NSString *)title message:(NSString *)message leftBtnName:(NSString *)leftName rightBtnName:(NSString *)rightBtnName left:(void(^)(void))left right:(void(^)(void))right;
  14. - (UIAlertController *)createAlertWithTitle:(NSString *)title message:(NSString *)message leftBtnName:(NSString *)leftName rightBtnName:(NSString *)rightBtnName left:(void(^)(void))left right:(void(^)(void))right;
  15. @end