Latest 1.0.2
Homepage https://github.com/Binglin/UITextRange
License MIT
Platforms ios 6.0, requires ARC
Authors

UITextRange

  • UITextField category that could limit text length
  • UITextView category that could limit text length
  • UITextView placeholder property

通过属性设置即可实现限制最大的输入长度

可在xib or storyboard中设置

UITextField

let field: UITextField
field.ib_maxLength = 10

UITextView 所有属性均可在interface builder中设置 文本长度的变化可通过监听属性currentLength

textView: UITextView
textView.ib_maxLength = 10

placeholder like UITextField

textView.ib_placeholder = "在此输入内容"

Install

pod 'IBTextRange', '~> 1.0.2'

Latest podspec

{
    "name": "IBTextRange",
    "version": "1.0.2",
    "summary": "UITextView and UITextField category of a property of maxLength . UITextView has a property called placeholder",
    "homepage": "https://github.com/Binglin/UITextRange",
    "license": {
        "type": "MIT",
        "file": "LICENSE.md"
    },
    "authors": {
        "u51b0u7433": "[email protected]"
    },
    "platforms": {
        "ios": "6.0"
    },
    "source": {
        "git": "https://github.com/Binglin/UITextRange.git",
        "tag": "1.0.2"
    },
    "source_files": "Pod",
    "requires_arc": true
}

Pin It on Pinterest

Share This