How to add Underline/Bold/Italicize Abilities for UITextView Swift [duplicate]

梦想的初衷 提交于 2019-11-29 17:29:50

The UI is simply an ordinary editable UITextView with allowsEditingTextAttributes set to true.

How you save is up to you, but the most universal solution is probably to pull out the UITextView's attributedText, archive it into an NSData (now known as Data in Swift), and save it off.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!