Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Pods
Screenshots
TBTextViewWithCharLimit.xcodeproj
TBTextViewWithCharLimit.xcworkspace
TBTextViewWithCharLimit
TBTextViewWithCharLimitTests
LICENSE
Podfile
Podfile.lock
README.md
TBTextViewWithCharLimit.podspec

README.md

TBTextViewWithCharLimit

Version License Platform

alt tag alt tag alt tag

Usage

Add to your podfile

pod "TBTextViewWithCharLimit"
//Import
#import "TextViewWithCharLimit.h"

//Setup
@interface MyClass () <,TextViewWithCharLimitDelegate>

TextViewWithCharLimit *textField = TextViewWithCharLimit(frame: self.view.frame)
textField.myDelegate = self;
textField.backgroundColor = [UIColor colorWithWhite:1.0 alpha:0.2];
textField.charMax = 105;
textField.placeholderText = @"Empty field";

//Delegates 
-(void)textViewWithCharLimit:(TextViewWithCharLimit *)textViewWithCharLimit shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{
    
}

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

Requirements

IOS 8.0

Installation

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

pod "TBTextViewWithCharLimit"

Author

thiagotmb, tmb0710@gmail.com

License

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

You can’t perform that action at this time.