//*********************************************************
SVProgressHUD 使用過程:
1. CocoaPods下載SDK代碼包:SVProgressHUD
2.系統(tǒng)庫:QuartzCore.framework,F(xiàn)oundation.framework,UIKit.framework,CoreGraphics.framework
3.引進聲明文件#import "SVProgressHUD.h"
4. 需要提示時,加入調(diào)用提示框指令生成不同種類的提示框?qū)ο?帶有Style/AnimationType/MaskType)
?Eg: [SVProgressHUD showWithStatus:@"加載中..." maskType:SVProgressHUDMaskTypeGradient]
5.需要隱藏時,加入隱藏當前提示框指令隱藏提示框?qū)ο?/p>
Eg:[SVProgressHUD dismiss]
//*********************************************************
SVProgressHUD :第三方彈出提示層控件,提示網(wǎng)絡(luò)加載或提示對錯。

SVProgressHUD特點:
?1. 提示當前所處狀態(tài)。如:網(wǎng)絡(luò)傳輸、提交中、操作成功或失敗等。
?2. 設(shè)置提示的poplayer為model即在提示的時間點允許用戶做其他操作 。
3. 可以設(shè)置背景色和自定義提示的內(nèi)容 。
4. 非常簡潔,代碼量少。
SVProgressHUD 用法介紹:
?1. + (void)showWithStatus:(NSString*)status maskType:(SVProgressHUDMaskType)maskType自定義狀態(tài)提示內(nèi)容和 提示層的樣式model
?2. + (void)dismiss 關(guān)閉當前提示框 ?。
SVProgressHUDMaskType 介紹:
?1. SVProgressHUDMaskTypeNone : 在提示框顯示時,仍可以做其他操作,如View 上面的輸入等 。
2. SVProgressHUDMaskTypeClear :在提示框顯示時, 不可以做其他操作
3. SVProgressHUDMaskTypeBlack :在提示框顯示時,不可以做其他操作且背景色是黑色?
4. SVProgressHUDMaskTypeGradient : 在提示框顯示時,不可以做其他操作且背景色是漸變的??
5.SVProgressHUDMaskTypeCustom:
SVProgressHUDStyle介紹:
1.SVProgressHUDStyleLight
2.SVProgressHUDStyleDark
3.SVProgressHUDStyleCustom
SVProgressHUDAnimationType介紹:
1.SVProgressHUDAnimationTypeFlat
2.SVProgressHUDAnimationTypeNative
SVProgressHUD底層包中的相關(guān)方法:
+ (void)show;
+ (void)showWithStatus:(NSString*)status;
+ (void)showWithStatus:(NSString*)status maskType:(SVProgressHUDMaskType)maskType;
+ (void)showWithMaskType:(SVProgressHUDMaskType)maskType;?
+ (void)showSuccessWithStatus:(NSString*)string;
+ (void)showSuccessWithStatus:(NSString *)string duration:(NSTimeInterval)duration;+ (void)showErrorWithStatus:(NSString *)string;
+ (void)showErrorWithStatus:(NSString *)string duration:(NSTimeInterval)duration;?
+ (void)setStatus:(NSString*)string; // change the HUD loading status while it's showing?
+ (void)dismiss; // simply dismiss the HUD with a fade+scale out animation
+ (void)dismissWithSuccess:(NSString*)successString; // also displays the success icon image
+ (void)dismissWithSuccess:(NSString*)successString afterDelay:(NSTimeInterval)seconds;
+ (void)dismissWithError:(NSString*)errorString; // also displays the error icon image
+ (void)dismissWithError:(NSString*)errorString afterDelay:(NSTimeInterval)seconds;?
+ (BOOL)isVisible;
SVProgressHUD 用法網(wǎng)址:
http://www.cnblogs.com/xunziji/archive/2012/11/05/2754915.html - SVProgressHUD