Latest 0.0.1
Homepage https://github.com/0x1306a94/LimitInputTextControl
License MIT
Platforms ios 8.0
Frameworks UIKit
Authors

iOS 限制输入长度控件

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Usage

// LimitTextView
LimitTextView *textView = [[LimitTextView alloc] initWithMaxLine:5 maxLength:1000];
textView.placeholder = @"请输入内容";
textView.placeholderColor = [UIColor blackColor];
textView.font = [UIFont systemFontOfSize:15];
textView.textColor = [UIColor orangeColor];
__weak typeof(self) weakSelf = self;
textView.didHeightChange = ^(CGFloat height) {
    __strong typeof(weakSelf) strongSelf = weakSelf;
    // relodheght
};

// LimitTextField
LimitTextField *textField = [[LimitTextField alloc] initWithMaxLength:10];

Installation

LimitInputTextControl is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'LimitInputTextControl'

Author

0x1306a94, [email protected]

License

LimitInputTextControl is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "LimitInputTextControl",
    "version": "0.0.1",
    "summary": "u9650u5236u8f93u5165u957fu5ea6u4ee5u53cau5b57u6570u63a7u4ef6",
    "description": "u652fu6301 UITextField u6587u5b57u8f93u5165u5b57u6570u9650u5236nu652fu6301 UITextView u6587u5b57u8f93u5165u884cu6570u4ee5u53cau5b57u6570u9650u5236",
    "homepage": "https://github.com/0x1306a94/LimitInputTextControl",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "0x1306a94": "[email protected]"
    },
    "source": {
        "git": "https://github.com/0x1306a94/LimitInputTextControl.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LimitInputTextControl/Classes/**/*.{h,m}",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This