genaks genaks - 1 year ago 184
Swift Question

How to add toggleBoldface option to a UITextView in iOS?

I wish to add toggleBoldface, toggleItalics and toggleUnderline to the editting options of a UITextView. How can this be done? Preferrably in Swift please.

Answer Source

Enable the text view's allowsEditingTextAttributes property.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download