Giter Site home page Giter Site logo

lgh_progresshud's Introduction

TFY_ProgressHUD

使用 pod 'TFY_ProgressHUD'

typedef enum : NSUInteger{ ProgressHUDMaskTypeNone = 1, // 当提示显示的时间,用户仍然可以做其他操作,比如View 上面的输入等 ProgressHUDMaskTypeClear, // 用户不可以做其他操作 ProgressHUDMaskTypeBlack, // 用户不可以做其他操作,并且背景色是黑色 ProgressHUDMaskTypeGradient // 用户不可以做其他操作,并且背景色是渐变的 }ProgressHUDMaskType;

@interface TFY_ProgressHUD : UIView /**

  • 不带任何文字的弹出框 */
  • (void)show; /**
  • 提示弹框 输入文字 */
  • (void)showWithStatus:(NSString*)status; /**
  • 展示状态 status 显示状态 maskType 枚举类型 */
  • (void)showWithStatus:(NSString*)status maskType:(ProgressHUDMaskType)maskType;

  • (void)showWithMaskType:(ProgressHUDMaskType)maskType; /**

  • 展示成功的状态 string 传字符串 */
  • (void)showSuccessWithStatus:(NSString*)string; /**
  • 展示成功的状态 string 传字符串 duration 设定显示时间 */
  • (void)showSuccessWithStatus:(NSString )string duration:(NSTimeInterval)duration; /*
  • 展示失败的状态 string 字符串 */
  • (void)showErrorWithStatus:(NSString *)string;
  • (void)showErrorWithStatus:(NSString )string duration:(NSTimeInterval)duration; /*
  • 展示提示信息 string 字符串 */
  • (void)showPromptWithStatus:(NSString *)string;
  • (void)showPromptWithStatus:(NSString )string duration:(NSTimeInterval)duration; /*
  • 在显示时更改HUD的加载状态。 */
  • (void)setStatus:(NSString*)string; /**
  • 简单地用淡出+缩放动画来解散HUD。 */
  • (void)dismiss; /**
  • 显示成功图标图像 */
  • (void)dismissWithSuccess:(NSString*)successString;
  • (void)dismissWithSuccess:(NSString*)successString afterDelay:(NSTimeInterval)seconds; /**
  • 显示错误图标图像。 */
  • (void)dismissWithError:(NSString*)errorString;

  • (void)dismissWithError:(NSString*)errorString afterDelay:(NSTimeInterval)seconds;

  • (void)dismissWithPrompt:(NSString *)promptString;

  • (void)dismissWithPrompt:(NSString *)promptString afterDelay:(NSTimeInterval)seconds;

  • (BOOL)isVisible;

  • (TFY_ProgressHUD*)sharedView ;

  • (void)dismissWithNoAni;

lgh_progresshud's People

Contributors

13662049573 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.