APExpandingTextView 0.1.0

APExpandingTextView 0.1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后发布2015年9月
SPM支持 SPM

Aadesh Patel 维护。



  • Aadesh Patel

APExpandingTextView

使用方法

要运行示例项目,请克隆仓库,并首先从 Example 目录运行 pod install

Swift
var textView: APExpandingTextView = APExpandingTextView(frame: ...)
textView._delegate = self
self.view.addSubview(textView)

...

// APExpandingTextViewDelegate
func textViewWillExpand(textView: APExpandingTextView!) {
    ...
}

func textViewDidExpand(textView: APExpandingTextView!) {
    ...
}
Objective-C
APExpandingTextView *textView = [[APExpandingTextView alloc] initWithFrame: ...];
textView._delegate = self
[self.view addSubView:textView];

...

// APExpandingTextViewDelegate
- (void)textViewWillExpand(textView: APExpandingTextView) {
    ...
}

- (void)textViewDidExpand(textView: APExpandingTextView) {
    ...
}

要求

安装

APExpandingTextView 通过 CocoaPods 提供。要安装它,请简单地将以下行添加到您的 Podfile 中

pod "APExpandingTextView"

作者

Aadesh Patel, [email protected]

许可证

APExpandingTextView 可在 MIT 许可证下使用。有关更多信息,请参阅 LICENSE 文件。