iOS中的富文本编辑器 [英] Rich-text editor in iOS
问题描述
我正在寻找一个示例项目,该项目应具有基本的富文本编辑功能(粗体,斜体,下划线,对齐,附加图像)。
I am looking for a sample project which should have basic rich text editing features (Bold,Italic,Underline,Alignment,Attaching images).
我浏览了Google搜索结果有几个编辑器可用于 iOS
但这些都是使用 UIWebView
与一起开发的HTML
。我正在寻找使用 UITextView
开发的那个以及 iOS 6
和 7
( NSAttributedString
, NSTextattAchment
)
I went through Google search results there are several editors available for iOS
but those all are developed by using UIWebView
with HTML
. I am looking for the one which developed by using UITextView
along with new features in iOS 6
and 7
(NSAttributedString
, NSTextattAchment
)
如果你知道任何开源代码或教程,请指导我吗?
Can please guide me if you know any open source code or tutorial?
提前致谢!
推荐答案
在iOS开发网站上没有可用于富文本的示例项目,但是如果您喜欢UITextView实现,那么几乎没有源代码替代品,如iOS-Rich-Text-Editor和FastTextView。
There no sample project for rich text that available on iOS Dev website, However if you like a UITextView implementation there few open-source alternatives such as iOS-Rich-Text-Editor and FastTextView.
iOS-Rich-Text-Editor
RichTextEditor for iPhone& iPad支持额外的加载,如粗体,斜体,下划线,StrikeThrough,字体,段落缩进/突出等。检查示例它使用UITExtview。
iOS-Rich-Text-Editor
RichTextEditor for iPhone & iPad that supports loads of extra such as Bold, Italic, Underline, StrikeThrough, Font, Paragraph Indent/Outdent etc. Check the example its uses UITExtview.
FastTextView
EGOTextView是UITextView的完全替代品,它增加了支持富文本编辑。
FastTextView
EGOTextView is a complete drop in replacement for UITextView, that adds support for Rich Text Editing.
这篇关于iOS中的富文本编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!