星空网 > 软件开发 > 操作系统

【推荐】iOS带有加载网络图片进度的UIImageView

  UCZProgressView 是一个带有通用的圆形图片进度下载控件。动画效果不错

  特性

  • Customizable indicator (line width, radius, and color)
  • Display a label with the current progress.
  • Customizable progress text label (color, size and font)
  • Customizable background view (blur style)
  • Fully support interface builder (IB_DESIGNABLE and IBInspectable)
  • Fully support UI_APPEARANCE_SELECTOR

【推荐】iOS带有加载网络图片进度的UIImageViewimages/loading.gif' data-original="http://images2015.cnblogs.com/blog/133128/201602/133128-20160211185536777-596304194.gif" />  【推荐】iOS带有加载网络图片进度的UIImageView

【推荐】iOS带有加载网络图片进度的UIImageView  【推荐】iOS带有加载网络图片进度的UIImageView

 

  用法

self.progressView = [[UCZProgressView alloc] initWithFrame:self.view.bounds];self.progressView.translatesAutoresizingMaskIntoConstraints = NO;[self.view addSubview:self.progressView];NSDictionary *views = NSDictionaryOfVariableBindings(_progressView);[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"V:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]];[self.view addConstraints:[NSLayoutConstraint constraintsWithVisualFormat:@"H:|-0-[_progressView]-0-|" options:0 metrics:nil views:views]];

 

Show indeterminate state (default value is YES)

self.progressView.indeterminate = YES;

【推荐】iOS带有加载网络图片进度的UIImageView

Show progress

self.progressView.progress = 0.7;

【推荐】iOS带有加载网络图片进度的UIImageView

Show indicator text label

self.progressView.showsText = YES;

【推荐】iOS带有加载网络图片进度的UIImageView

 

Indicator and indicator text color

self.progressView.showsText = YES;self.progressView.tintColor = [UIColor blueColor];

 


【推荐】iOS带有加载网络图片进度的UIImageView

Text color

self.progressView.showsText = YES;self.progressView.tintColor = [UIColor blueColor];self.progressView.textColor = [UIColor redColor];

 


【推荐】iOS带有加载网络图片进度的UIImageView

Radius

self.progressView.radius = 40.0;

 


【推荐】iOS带有加载网络图片进度的UIImageView

Line width

self.progressView.lineWidth = 6.0;

 


【推荐】iOS带有加载网络图片进度的UIImageView

Blur background view

self.progressView.blurEffect = [UIBlurEffect effectWithStyle:UIBlurEffectStyleExtraLight];

 


【推荐】iOS带有加载网络图片进度的UIImageView

Animation did stop block

 progressView.animationDidStopBlock = ^{  [self presentViewController:_photoGallery animated:YES completion:nil];};

 


 

代码库下载




原标题:【推荐】iOS带有加载网络图片进度的UIImageView

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

Omicron:https://www.goluckyvip.com/tag/23519.html
转化率获得:https://www.goluckyvip.com/tag/2352.html
Omise:https://www.goluckyvip.com/tag/23520.html
omj海外仓:https://www.goluckyvip.com/tag/23521.html
OMNI:https://www.goluckyvip.com/tag/23522.html
Omooma:https://www.goluckyvip.com/tag/23523.html
西安到都江堰旅游攻略有什么?:https://www.vstour.cn/a/407236.html
9月张家界有什么好玩的地方 张家界有几个好玩的地方:https://www.vstour.cn/a/407237.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流