iOS 数值选择圆形控件:NOCircleSelector

jopen 10年前

NOCircleSelector 是 iOS 圆形控件,用来选择给定数值。NOCircleSelector 支持高度自定义,所有三角形,外观(textLabels, colours, imageView),文本之间的连接等等。可以被用来选择一个范围的数值或者单个数值。

结构:

有三种不同类型的对象:

  • NOCircleSelector, which is an UIView and represents the whole area where the control is drawn. MIN(selector.width, selector.height) / 2 is the radius of selector.
  • NOCircleDot, which is an UIView and represents the single dot. The size and all properties can be changed via properties. Don't forget about normal UIView properties. The control is easy to subclass so you can easily add custom views. To access it use delegate methods or dots array of NOCircleSelector.
  • NOCircleDotConnection - a model class, representing the line between two NOCircleDot. You can customise it via properties. To access it use delegate methods or dotConnections array of NOCircleSelector. The recommended method to differ the dot is to use NS_ENUM and set tags of these.

iOS 数值选择圆形控件:NOCircleSelector

项目主页:http://www.open-open.com/lib/view/home/1414132790872