洛阳学员端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
2.4 KiB

9 months ago
  1. //
  2. // AFEAlertView.h
  3. // BioAuthEngine
  4. //
  5. // Created by shuhong.xsh on 16/8/3.
  6. // Copyright © 2016年 DTF. All rights reserved.
  7. // 弹出框管理类
  8. #import <UIKit/UIKit.h>
  9. typedef void (^AFEAlertClickBlock) ();
  10. @interface AFEAlertView : NSObject
  11. @property(atomic, assign) BOOL isAlertViewShow;
  12. +(AFEAlertView*) sharedInstance;
  13. /**
  14. * alert是否显示
  15. */
  16. - (BOOL)isAlertViewShow;
  17. /**
  18. * alert
  19. *
  20. * @param title
  21. * @param msg
  22. * @param firstTitle ()
  23. * @param secondTitle ()
  24. * @param fblk callback()
  25. * @param sblk callback()
  26. */
  27. - (void)displayAlertViewWithTitle:(NSString *)title
  28. message:(NSString*)msg
  29. firstButtonTitle:(NSString *)firstTitle
  30. secondBittonTitle:(NSString *)secondTitle
  31. firstCallBack:(AFEAlertClickBlock)fblk
  32. secondCallBack:(AFEAlertClickBlock)sblk
  33. withVC:(UIViewController*)parentViewController;
  34. /**
  35. *
  36. *
  37. */
  38. - (void)displayLivnessFailAlertView:(NSString *)title
  39. tips:(NSString*)tip
  40. cancleTip:(NSString *)cancelTips
  41. retryTip:(NSString *)retryTips
  42. withCancelCallBack:(AFEAlertClickBlock)cancel
  43. retryCallBack:(AFEAlertClickBlock)retry
  44. withVC:(UIViewController*)parentViewController;
  45. /**
  46. *
  47. * @param superview view
  48. * @param title
  49. * @param detailTitle
  50. * @param cancelTips
  51. * @param retryTips
  52. */
  53. - (void)displayCameraPermissionAlert:(UIViewController *)parentViewController
  54. title:(NSString *)title
  55. detailTitle:(NSString *)detailTitle
  56. cancleTip:(NSString *)cancelTips
  57. retryTip:(NSString *)retryTips
  58. cancelCallBack:(AFEAlertClickBlock)cancelCall
  59. setCallBack:(AFEAlertClickBlock)setCall;
  60. // 判断最顶层视图是否是 APBAlertViewController
  61. - (BOOL)isAPBAlertViewController;
  62. - (UIViewController *)currentViewController;
  63. @end