EAColourfulProgressView 0.1.0

EAColourfulProgressView 0.1.0

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布最新版本2014年12月

Eddpt 维护。




  • Edgar Antunes

EAColourfulProgressView 是一个自定义进度视图,其当前填充颜色根据当前值在两种颜色之间生成。

它利用了 IBDesignableIBInspectable,因此您可以在不离开 Interface Builder 的情况下完全自定义。

您可以通过调用以下方法来更新当前值

/**
 *  This method updates the current value to the given one. It can
 *  animate the progress view filling size, as well as the background
 *  color change, if 'animated' is YES.
 *
 *  @param currentValue The new current value to be used.
 *  @param animated BOOL with YES if the update should be animated, NO otherwise.
 */
- (void)updateToCurrentValue:(NSInteger)currentValue animated:(BOOL)animated;

用法

在 Interface Builder 中将 UIViewCustom Class 设置为 EAColourfulProgressView,自定义可用变量并观看它们实时渲染;)

未来改进

  • 任意数量的分段
  • 分段分隔符(类似进度视图的加载效果)
  • 性能改进