测试已测试 | ✗ |
语言语言 | Obj-CObjective C |
许可证 | MIT |
发布日期最后发布 | 2015年5月 |
由以下人员维护:Tino Rachui,cg,Mathias Köhnke,Michael Kamphausen,Mathias Koehnke,Nico Schümann,Heiko Wichmann,Stephan Lerner,Famara Kassama。
一个文本视图,允许设置 placeholder 文本,就像 UILabel 一样。此外,您还可以设置最大字符数。在这种情况下,文本视图只接受指定的字符数作为输入。用户能够输入的剩余字符数将在文本视图的右下角显示。
导入头文件
#import "APLTextView.h"
像这样使用 APLTextView
...
APLTextView *textView = ...
textView.placeholder = @"Placeholder to be displayed unless some text has been entered";
textView.maxCharacters = 100;