Non editable and non selectable UITextView uses wrong font

Originator:jaherhi
Number:rdar://15854592 Date Originated:19-Jan-2014 12:20 PM
Status:Closed Resolved:Yes
Product:iOS SDK Product Version:iOS 9.3
Classification:N/A Reproducible:Always
 
Summary:
When using a non editable and non selectable UITextView with a font family or size different from the default one in a storyboard, if the text is set in code, the font used is the default one, not the one selected in the storyboard

Steps to Reproduce:
1. Open the sample code
2. Run the app

Expected Results:
The text should be bold and the font size should be 25, as selected in the storyboard

Actual Results:
The font is not bold and the size is not 25

Version:
iOS 9.3 and Xcode 7.3.1 (7D1014)

Notes:
Changing the font for the UITextView after the text is set solves this issue.

Sample app: https://github.com/jaherhi/radar.apple.com/tree/master/15854592-UITextViewWrongFont

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!