LXMRulerView 2.1.1

LXMRulerView 2.1.1

TestsTested
LangLanguage Obj-CObjective C
License MIT
ReleasedLast Release May 2017

Maintained by Phelthas.



  • By
  • Phelthas

A ruler View could be used as a value picker or a value displayer

Color, lineDistance, spacing, margin, maxValue, minValue and some other property are customizable!
Compatible with autoLayout and xib!

it will look like:
image

这里有一篇总结

How to use

1, cocoaPods
在你的podfile中添加
pod 'LXMRulerView', '~> 2.0.0'
and run pod update or pod install
2, manual
drag folder LXMRulerView to your project

Update

2.0.0    使用collectionView重构整个View,解决尺子太长时绘制太慢的问题
1.3.1   修复从xib初始化的时候初始值不对的问题
1.3.0   改用CALayer的方式实现,不再用drawRect的方式;drawRect的方式太占内存了
1.2.0 加入accuracy属性,支持尺子的一格代表不同的值
1.1.0 支持autolayout,支持从xib初始化

License

LXMRulerView is provided under the MIT license. See LICENSE file for details.