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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容