SVProgressHUD框架

1.设置遮罩的背景颜色

[SVProgressHUD setDefaultMaskType:SVProgressHUDMaskTypeCustom];

[SVProgressHUDsetBackgroundLayerColor:APP_BackgroundColor];

2.设置小正方行的背景颜色

[SVProgressHUD setDefaultStyle:SVProgressHUDStyleCustom];

a.view的背景颜色

[SVProgressHUD setBackgroundColor:[UIColor orangeColor]];

b.view上面的旋转小图标的 颜色

[SVProgressHUD setForegroundColor:[UIColor blueColor]];

3.动画样式 (旋转的小图标的样式)

//@property (assign, nonatomic) SVProgressHUDAnimationType defaultAnimationType

//SVProgressHUDAnimationTypeFlat,//默认  圆圈

//SVProgressHUDAnimationTypeNative//菊花

4.显示时间

//@property (assign, nonatomic) NSTimeInterval minimumDismissTimeInterval;

默认为5秒//[SVProgressHUD setMinimumDismissTimeInterval:1.0];

百度经验:

http://jingyan.baidu.com/article/fd8044fa3ff7e45030137a7d.html

http://www.jianshu.com/p/a08d4597cf24

伯乐在线

http://hao.jobbole.com/svprogresshud-ios/?utm_source=hao.jobbole.com&utm_medium=relatedResources

你可能感兴趣的:(SVProgressHUD框架)