【问题标题】:Custom UIProgressView style自定义 UIProgressView 样式
【发布时间】:2011-08-10 14:30:28
【问题描述】:

我正在尝试自定义我的 UIProgressView。我希望它看起来像图片上的第三个:

请你告诉我我是如何做到这一点的。

【问题讨论】:

  • 我只试过 PDProgressView: [progressView setTintColor:[UIColor colorWithRed:0.0f/255.0f green:176.0f/255.0f blue:224.0f/255.0f alpha:1.0f]]; [progressView setBackgroundColor:[UIColor colorWithRed:48.0f/255.0f green:48.0f/255.0f blue:48.0f/255.0f alpha:1.0f]];

标签: iphone objective-c xcode progress uiprogressview


【解决方案1】:

查看 OCProgress:http://www.obsessivecode.com/projects/ocprogress/

它是非常可定制的,从宽度到高度到条形颜色到背景颜色到边框颜色。

【讨论】:

  • 你的意思是这个代码应用商店安全吗?应用商店 100% 安全。
  • 谢谢哥们。真的帮了大忙。
  • @DanielAmitay 你能提供一些关于如何使用 OCProgress 的示例代码吗?我知道这是一年多以前的事了,但我是 iOS 新手。提前致谢。
【解决方案2】:

【讨论】:

  • 是的。背景颜色实际上不适用于 UIProgressViewDefault progressView。
猜你喜欢
  • 2011-11-16
  • 1970-01-01
  • 1970-01-01
  • 2013-09-29
  • 1970-01-01
  • 1970-01-01
  • 2012-12-10
  • 2017-02-10
  • 2011-05-21
相关资源
最近更新 更多