iPhone的文本编辑器示例 [英] Text Editor Example for iPhone
问题描述
我的程序需要TXT / RTF编辑器功能。我只能在数据库示例:一个简单的文本编辑器。不幸的是,它是一个Javascript程序。
My program requires TXT/RTF editor functionality. I've only been able to find an old Apple example at Database Example: A Simple Text Editor. Unfortunately, its a Javascript program.
我还看到了一些关于stackoverflow的文本编辑器问题。但是,它们似乎主要与设计和架构有关。
I've also seen a few text editor questions on stackoverflow. However, they seem to be mostly related to design and architecture.
我的问题是,是否有苹果公司提供的iOS / Objective C文本编辑器的现代示例用作
My question is, are there any modern examples of an iOS/Objective C text editor from Apple to use as a starting point?
推荐答案
使用UITextView进行文本编辑。如果需要富文本格式,则必须自己编写一些内容-目前尚不可用。 Cocoanetics确实开始在 https://github.com/Cocoanetics/NSAttributedString-Additions上实现富文本标签-for-HTML 和AFAIK,他也确实想创建富文本编辑器(至少我在Twitter上阅读过此内容)。
Use UITextView for text editing. If you need rich text, you have to write something on your own - not currently available. Cocoanetics did start implementing rich text label at https://github.com/Cocoanetics/NSAttributedString-Additions-for-HTML and AFAIK he did want to create rich text editor too (at least I read this on Twitter).
这篇关于iPhone的文本编辑器示例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!