To run the example project, clone the repo, and run pod install
from the Example directory first.
var textView: APExpandingTextView = APExpandingTextView(frame: ...)
textView._delegate = self
self.view.addSubview(textView)
...
// APExpandingTextViewDelegate
func textViewWillExpand(textView: APExpandingTextView!) {
...
}
func textViewDidExpand(textView: APExpandingTextView!) {
...
}
APExpandingTextView *textView = [[APExpandingTextView alloc] initWithFrame: ...];
textView._delegate = self
[self.view addSubView:textView];
...
// APExpandingTextViewDelegate
- (void)textViewWillExpand(textView: APExpandingTextView) {
...
}
- (void)textViewDidExpand(textView: APExpandingTextView) {
...
}
APExpandingTextView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "APExpandingTextView"
Aadesh Patel, [email protected]
APExpandingTextView is available under the MIT license. See the LICENSE file for more info.