1

是否有对Core Text的开源重新实现UITextView和使用?UITextField

Apple 的SimpleTextInput带有SimpleCoreTextViewEditableCoreTextView类,它明确表示:

     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协议族的可编辑文本字段或文本视图的完整实现,我们有哪些替代方案?

4

1 回答 1

1

您可以使用或参考OmniGroup 的 TextEditor 来实现可编辑的文本字段或文本视图,基于 Core Text 和UITextInput

于 2012-10-19T05:51:00.593 回答