Setting text on UILabel in iOS 7 resets the textColor to black
| Originator: | nilsou | ||
| Number: | rdar://14156466 | Date Originated: | 14-Jun-2013 12:15 PM |
| Status: | Open | Resolved: | |
| Product: | iOS SDK | Product Version: | |
| Classification: | Reproducible: |
14-Jun-2013 12:15 PM Nils Hayat: Summary: if I set a text color on a UILabel in interface builder in XCode 5. When later on I set the text of that label in code, the label loses the color I had set. Steps to Reproduce: Create a label in a viewcontroller in a xib file, Assign a custom color to it. In your code at some point, update the text of that label. Expected Results: the text should be updated to the new text while keeping the old color Actual Results: the text is updated but the color is reset. (I think the alignment is also reset) Regression: Notes: Most likely this is because XCode 5 actually sets the attributedText property of a label instead of it's text and textColor properties.
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!