All Projects → yusanlou → BNTextField-Limit

yusanlou / BNTextField-Limit

Licence: MIT license
No description or website provided.

Programming Languages

objective c
16641 projects - #2 most used programming language
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to BNTextField-Limit

Textfieldeffects
Custom UITextFields effects inspired by Codrops, built using Swift
Stars: ✭ 5,708 (+28440%)
Mutual labels:  textfield
Material
A UI/UX framework for creating beautiful applications.
Stars: ✭ 11,870 (+59250%)
Mutual labels:  textfield
You Dont Need Javascript
CSS is powerful, you can do a lot of things without JS.
Stars: ✭ 16,514 (+82470%)
Mutual labels:  textfield
Mlbpasswordtextfield
A custom password input like WeChat payment for iOS.
Stars: ✭ 39 (+95%)
Mutual labels:  textfield
Cminputview
💪之前代码是基于UITextView进行的封装,侵入性较强,不方便使用,现使用Category重构代码,支持Cocoapods
Stars: ✭ 149 (+645%)
Mutual labels:  textfield
Cocoatextfield
Apple TextField created according to the Material.IO guidelines of 2019. Featured at Medium.
Stars: ✭ 195 (+875%)
Mutual labels:  textfield
Mmtextfieldeffects
Extension of TextFieldEffects with Custom UITextFields effects inspired by Codrops, built using Objective-C
Stars: ✭ 619 (+2995%)
Mutual labels:  textfield
iOSUtilitiesSource
IOS Utilities Library for Swift
Stars: ✭ 46 (+130%)
Mutual labels:  textfield
Underlinetextfield
Simple UITextfield Subclass with state
Stars: ✭ 156 (+680%)
Mutual labels:  textfield
Ragtextfield
Subclass of UITextField that adds an animated placeholder and an optional hint label below the text.
Stars: ✭ 227 (+1035%)
Mutual labels:  textfield
Diimageview
A Snapchat-inspired caption integrated within a regular UIImageView.
Stars: ✭ 104 (+420%)
Mutual labels:  textfield
Floatinglabeltextfieldswiftui
Floating Label TextField for SwiftUI. FloatingLabelTextFieldSwiftUI
Stars: ✭ 128 (+540%)
Mutual labels:  textfield
Keyboardavoidanceswiftui
How to move SwiftUI view up when keyboard appears https://www.vadimbulavin.com/how-to-move-swiftui-view-when-keyboard-covers-text-field/
Stars: ✭ 198 (+890%)
Mutual labels:  textfield
Taniwhatextfield
My first cocoapod framework
Stars: ✭ 26 (+30%)
Mutual labels:  textfield
Stringformatter
Simple Text Formetter (Credit Card Number, Phone Number, Serial Number etc.) Can be used in all text inputs according to the format pattern. If desired, large minor character restrictions can be made in the format pattern.
Stars: ✭ 231 (+1055%)
Mutual labels:  textfield
Autocompletefield
Subclass of UITextField that shows inline suggestions while typing.
Stars: ✭ 656 (+3180%)
Mutual labels:  textfield
Keyboardtextfield
KeyboardTextField is a lightweight, simple, non-invasive keyboard accompanying input box! Write in Swift!
Stars: ✭ 170 (+750%)
Mutual labels:  textfield
ATGValidator
iOS validation framework with form validation support
Stars: ✭ 51 (+155%)
Mutual labels:  textfield
FormToolbar
Simple, movable and powerful toolbar for UITextField and UITextView.
Stars: ✭ 85 (+325%)
Mutual labels:  textfield
Awesometextfieldswift
Awesome TextField is a nice and simple libriary for iOS and Mac OSX. It's highly customisable and easy-to-use tool. Works perfectly for any registration or login forms in your app.
Stars: ✭ 221 (+1005%)
Mutual labels:  textfield

BNTextField-Limit

限制输入字数

Installation with CocoaPods

edit your podfile

pod 'BNTextField-Limit'

end

Usage

Creat Textfield

UITextField *testField = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 100, 40)];

Set limit

[testField limitCondition:^BOOL(NSString *inputStr){
        return ![weakTextField.text isEqualToString:@"111"];
    } action:^{
        NSLog(@"limit action");
}];

Or

[testField limitNums:3 action:^{
	NSLog(@"num limit action");
}];

Set observe

[testField observeValueWithCondition:^BOOL(NSString *inputStr) {
        return weakTextField.text.length%2 == 1;
    } action:^{
        NSLog(@"vlaue is conformed");
}];

⚠️WARNNING

if you want to set the delegate , just ... set it before setting the limit.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].