iOS UITextView 光标位置

来源:互联网 发布:血小板计数算法 编辑:程序博客网 时间:2024/05/17 02:53
        text.textContainer.lineFragmentPadding = 0        text.textContainerInset = UIEdgeInsets.init(top: 2, left: 0, bottom: 0, right: 0)
text是UITextView