errorAlertTool.h 551 B

12345678910111213141516171819202122232425262728
  1. //
  2. // errorAlertTool.h
  3. // Private-x
  4. //
  5. // Created by xd h on 2024/7/20.
  6. //
  7. #import <Foundation/Foundation.h>
  8. NS_ASSUME_NONNULL_BEGIN
  9. /**
  10. *
  11. */
  12. typedef void (^errorAlert_DidClickButFun) (NSInteger tag); // 1 2 3 //表示点击弹框按钮的 index
  13. @interface errorAlertTool : NSObject
  14. + (instancetype)shareInstance;
  15. #pragma mark 网络异常弹框
  16. -(void)showNetErrorAlertFun:(NSInteger)type didClickBut:(errorAlert_DidClickButFun)didClickBut;
  17. #pragma mark 网络异常弹框 消失
  18. - (void)dismissErrorAlertFun;
  19. @end
  20. NS_ASSUME_NONNULL_END