UITextView does not show attributes' editing options for attributed text
Asked Answered
K

1

6

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.

Knit answered 9/7, 2013 at 20:41 Comment(0)
G
11

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.

Geo answered 9/7, 2013 at 22:37 Comment(3)
Isn't it quite "crazy" that such a bug is still around after more than 8 months? I know it's not critical, I was just wondering why they did not solve it in so many months :)Knit
It's totally unbelievable - you're right. Apple suck.Honest
Just to help others. It is the year 2017 and this bug still exists.Headband

© 2022 - 2024 — McMap. All rights reserved.