在我的应用程序中,在UITextview中我想隐藏光标.
如果这不可能,那么我想改变光标的颜色.
我们可以这样做吗?我已经搜索了它,但只获得了UITextfield的答案.
谢谢.
han*_*bao 13
在iOS 7上,您可以简单地将文本视图的tintColor设置为与其backgroundColor相同,以使光标不可见.
textView.tintColor = textView.backgroundColor;
Run Code Online (Sandbox Code Playgroud)
或者你可以尝试:
textView.tintColor = [UIColor clearColor];
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4762 次 |
| 最近记录: |