SaKaHUD 1.1.8

SaKaHUD 1.1.8

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release Apr 2017

Maintained by yang666.



SaKaHUD 1.1.8

  • By
  • WeiKunChao

show all Kindof HUD bottomShow :

  • (instancetype)defaultSaKaBottomNotification;
  • (void)showMessage:(NSString *)message Duration:(CGFloat)duration;

navigationShow : /*快速创建对象/ +(instancetype)defaultNavigationBarNotification; /*原始label型/

  • (void)showWithMessage:(NSString *)message Duration:(CGFloat)duration InView:(__kindof UIScrollView *)scrollView; /*自定义view型/

  • (void)showCustormViewDuration:(CGFloat)duration InView:(__kindof UIScrollView *)scrollView; the Delegate:

  • (void)navigationBarNotificationWillShow:(SaKaNavigationBarNotification *)notification StartDate:(NSDate *)start;

  • (void)navigationBarNotificationIsDismissed:(SaKaNavigationBarNotification *)notification;

  • (void)navigationBarNotificationIsTapped:(SaKaNavigationBarNotification *)notification;

StatusBarShow :

  • (void)displayNotificationWithMessage:(NSString *)message completion:(void (^)(void))completion;

  • (void)displayNotificationWithMessage:(NSString *)message forDuration:(NSTimeInterval)duration;

  • (void)displayNotificationWithAttributedString:(NSAttributedString *) attributedString completion:(void (^)(void))completion;

  • (void)displayNotificationWithAttributedString:(NSAttributedString *) attributedString forDuration:(NSTimeInterval)duration;

  • (void)displayNotificationWithView:(UIView *)view completion:(void (^)(void))completion;

  • (void)displayNotificationWithView:(UIView *)view forDuration:(NSTimeInterval)duration;

  • (void)dismissNotificationWithCompletion:(void(^)(void))completion;

  • (void)dismissNotification;

ProgressShow : /** 在 window 上添加一个只显示文字的 HUD */

  • (void)showMessage:(NSString )text; /* duration间隔后自动隐藏 */
  • (void)showMessage:(NSString )text Duration:(CGFloat)duration; /* 在 window 上添加一个提示信息的 HUD */
  • (void)showInfoMsg:(NSString )text; /* duration间隔后自动隐藏 */
  • (void)showInfoMsg:(NSString )text Duration:(CGFloat)duration; /* 在 window 上添加一个提示失败的 HUD */
  • (void)showFailure:(NSString )text; /* duration间隔后自动隐藏 */
  • (void)showFailure:(NSString )text Duration:(CGFloat)duration; /* 在 window 上添加一个提示成功的 HUD */
  • (void)showSuccess:(NSString )text; /* duration间隔后自动隐藏 */
  • (void)showSuccess:(NSString )text Duration:(CGFloat)duration; /* 在 window 上添加一个提示等待的 HUD, 需要手动关闭 */
  • (void)showLoading:(NSString )text; /* duration间隔后自动隐藏 */
  • (void)showLoading:(NSString )text Duration:(CGFloat)duration; /* 手动隐藏 HUD */
  • (void)hide;

AnotherType : /**

  • 中间显示
  • @param text 内容 */
  • (void)showCenterWithText:(NSString )text; /*
  • 中间显示+自定义停留时间
  • @param text 内容
  • @param duration 停留时间 */
  • (void)showCenterWithText:(NSString *)text duration:(CGFloat)duration;

#pragma mark-上方显示 /**

  • 上方显示
  • @param text 内容 */
  • (void)showTopWithText:(NSString )text; /*
  • 上方显示+自定义停留时间
  • @param text 内容
  • @param duration 停留时间 */
  • (void)showTopWithText:(NSString )text duration:(CGFloat)duration; /*
  • 上方显示+自定义距顶端距离
  • @param text 内容
  • @param topOffset 到顶端距离 */
  • (void)showTopWithText:(NSString )text topOffset:(CGFloat)topOffset; /*
  • 上方显示+自定义距顶端距离+自定义停留时间
  • @param text 内容
  • @param topOffset 到顶端距离
  • @param duration 停留时间 */
  • (void)showTopWithText:(NSString *)text topOffset:(CGFloat)topOffset duration:(CGFloat)duration;

#pragma mark-下方显示 /**

  • 下方显示
  • @param text 内容 */
  • (void)showBottomWithText:(NSString )text; /*
  • 下方显示+自定义停留时间
  • @param text 内容
  • @param duration 停留时间 */
  • (void)showBottomWithText:(NSString )text duration:(CGFloat)duration; /*
  • 下方显示+自定义距底端距离
  • @param text 内容
  • @param bottomOffset 距底端距离 */
  • (void)showBottomWithText:(NSString )text bottomOffset:(CGFloat)bottomOffset; /*
  • 下方显示+自定义距底端距离+自定义停留时间
  • @param text 内容
  • @param bottomOffset 距底端距离
  • @param duration 停留时间 */
  • (void)showBottomWithText:(NSString *)text bottomOffset:(CGFloat)bottomOffset duration:(CGFloat)duration;