Skip to content

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

License

Notifications You must be signed in to change notification settings

Lxta/LXMRulerView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LXMRulerView

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.1.1'
and run pod update or pod install
2, manual
drag folder LXMRulerView to your project

Update

2.1.1    加入尺子宽度为奇数时可能会出现显示不准确的warning提示
2.1.0    加入defaultValue属性,让尺子出现时指示设定的值
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.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 96.7%
  • Ruby 3.3%