UITextView draws text at different y offsets if textColor is set

Originator:jaddyman
Number:rdar://13801112 Date Originated:03-May-2013 09:59 AM
Status:Resolved Resolved:
Product:iOS SDK Product Version:6.1
Classification:UI/Usability Reproducible:Always
 
Summary:

UITextView draws its text at a different y offset if textColor is set.

Steps to Reproduce:

Create a UITextView instance, add it to a view, observe where the text is drawn within the UITextView. Then set  textColor with any color and rebuild, notice that the text is now drawn at a different y offset than when textColor was not set.

Expected Results:

UITextView should draw its text at the same offset regardless of whether textColor is set or not.

Actual Results:

UITextView draws its text at a different y offset when textColor is set.

Regression:

I Don't have a previous SDK to test with, but I haven't noticed this in the past.

Comments

Example project available here: http://d.pr/f/XPny

By jaddyman at May 3, 2013, 9:04 a.m. (reply...)

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!