是否有使用Core Text的UITextView
和UITextField
的开源重新实现?
苹果的SimpleTextInput具有SimpleCoreTextView
和EditableCoreTextView
类,其中明确指出:
File: SimpleCoreTextView.m
Abstract:
A view that draws text, reasons about layout, and manages a selection over its text range.
IMPORTANT: Its use of CoreText is naive and inefficient, it deals only with
left-to-right text layout, and it is by no means a good template for any text
editor. It is a toy implementation included only to illustrate how to bind
the system keyboard to some pre-existing text editor.
换句话说,它无法处理阿拉伯语,效率低下。
基于Core Text和
UITextInput
系列协议,对于完全实现可编辑文本字段或文本视图,我们有哪些替代方案? 最佳答案
您可以使用或引用OmniGroup's TextEditor
用于基于Core Text和UITextInput
的可编辑文本字段或文本视图的实现
关于ios - 使用Core Text重新实现UITextView和UITextField,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/12479683/