Latest 2.1.1
Homepage https://github.com/Phelthas/LXMRulerView
License MIT
Platforms ios 7.0, requires ARC
Frameworks Foundation, UIKit
Authors

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.

Latest podspec

{
    "name": "LXMRulerView",
    "version": "2.1.1",
    "summary": "A rulerView could be used as a value picker or a value displayer",
    "description": "u7528drawRecu65b9u5f0fu5b9eu73b0u7684u4e00u4e2arulerViewuff0cu95f4u8ddduff0cu989cu8272uff0cu5b57u4f53uff0cu8303u56f4u7b49u90fdu53efu4ee5u81eau5b9au4e49uff0cu4e5fu6709u6570u503cu53d8u5316u7684u56deu8c03uff0cu53efu4ee5u7528u6765u4f5cu4e3au6570u503cu9009u62e9u5668u6216u4ec5u4ec5u4f5cu4e3au4e00u4e2au663eu793au7528u7684u5c3au5b50",
    "homepage": "https://github.com/Phelthas/LXMRulerView",
    "license": "MIT",
    "authors": {
        "Phelthas": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/Phelthas/LXMRulerView.git",
        "tag": "2.1.1"
    },
    "source_files": "Example/LXMRulerViewDemo/LXMRulerView/*.{h,m}",
    "frameworks": [
        "Foundation",
        "UIKit"
    ],
    "requires_arc": true
}

Pin It on Pinterest

Share This