UITextView with AttributedStrings not working right
| Originator: | abrasdev | ||
| Number: | rdar://12684562 | Date Originated: | 12-Nov-2012 |
| Status: | Open | Resolved: | |
| Product: | iPhone SDK | Product Version: | 6.0 |
| Classification: | Reproducible: | YES |
Summary: On iOS 6, UITextView supports attributed strings. Turns out that a few attributes are not set doesn't matter what. Using IB or on your code, you can set what ever value you want and UITextView will report 0 for them. Here are a few of them that is impossible to set: LineSpacing, LineHeight, LineHeightMultiple, NSKern, ParagraphSpacingBefore and BaseWritingDirection. Steps to Reproduce: 1 - Create a new project. 2 - Add UITextView to your view. 3 - Try to set any of the attributes above. (Interface Builder shows a few of those attributes, but even there is not possible to set). 4 - Run. Expected Results: UITextView should show the attributed text exactly like you set it to be. Actual Results: UITextView shows the attributed text with all those attributes described above set to 0. Regression: Notes:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!