Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITextView does not show attributes' editing options for attributed text

I've created an app that uses a UITextView Text View with the Text set to Attributed and with the option Allow Attributes Editing enabled.. from what I've understood, this should allow the user to edit some attributes, such as Boldface, Italic etc when he selects a portion of the text contained within the TextView.. I launched the app within the IOS 6.1 Simulator and if I select some text within the UITextView it does not show any attributes' editing option, is it a simulator issue or am I missing something?

Thank you in advance for any help.

like image 826
Gianni Costanzi Avatar asked Jul 09 '13 20:07

Gianni Costanzi


1 Answers

There's a known bug with Xcode 4.X where the "allows editing attributes" checkbox in Interface Builder is apparently not working.

To fix this, you need to programmatically set the "allowsEditingTextAttributes" property of your UITextView via an IBOutlet.

like image 109
Michael Dautermann Avatar answered Nov 11 '22 18:11

Michael Dautermann