是否有对Core Text的开源重新实现UITextView
和使用?UITextField
Apple 的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.
换句话说,它不处理例如阿拉伯语,并且效率低下。
对于基于核心文本和UITextInput
协议族的可编辑文本字段或文本视图的完整实现,我们有哪些替代方案?