MBProgressHUD

Posted 悠然的南山

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了MBProgressHUD相关的知识,希望对你有一定的参考价值。


1
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES];//加到self.view上并且"View must not be nil." 2 hud.labelText = @"正在努力加载...."; 3 hud.labelColor = [UIColor grayColor]; 4 hud.color = [UIColor lightGrayColor]; 5 /* 6 各种属性设置 7 @synthesize animationType; 8 @synthesize delegate; 9 @synthesize opacity; 10 @synthesize color; 11 @synthesize labelFont; 12 @synthesize labelColor; 13 @synthesize detailsLabelFont; 14 @synthesize detailsLabelColor; 15 @synthesize indicator; 16 @synthesize xOffset; 17 @synthesize yOffset; 18 @synthesize minSize; 19 @synthesize square; 20 @synthesize margin; 21 @synthesize dimBackground; 22 @synthesize graceTime; 23 @synthesize minShowTime; 24 @synthesize graceTimer; 25 @synthesize minShowTimer; 26 @synthesize taskInProgress; 27 @synthesize removeFromSuperViewOnHide; 28 @synthesize customView; 29 @synthesize showStarted; 30 @synthesize mode; 31 @synthesize labelText; 32 @synthesize detailsLabelText; 33 @synthesize progress; 34 @synthesize size; 35 @synthesize activityIndicatorColor; 36 */

 

简单使用:

 

以上是关于MBProgressHUD的主要内容,如果未能解决你的问题,请参考以下文章

iOS 源代码分析 --- MBProgressHUD

如何使用swift的MBProgressHUD

MBProgressHUD 崩溃“MBProgressHUD 初始化程序中使用的视图为零”

MBProgressHUD的基本使用

iOS - 全局更改 MBProgressHUD 设计

滚动视图和 MBProgressHUD