iOS - 文本视图
-
文本视图的使用
文本视图用于显示多行可滚动文本,可选择性编辑。 -
重要属性
- dataDetectorTypes
- delegate
- editable
- inputAccessoryView
- inputView
- text
- textMoognment
- textColor
-
重要的委托方法
-
添加自定义方法 addTextView
-
在 ViewController.m 中实现 textView Delegates
-
更新 ViewController.m 中的 viewDidLoad 如下
-
输出
当我们运行应用程序时,我们将获得以下输出 -