Reputation: 27153
I am using auto layout for a month and this is a pain in my head. By some reasons if I set text to my textview that has constraints, App shows me not the same color and font as I set in storyboard, but seems default.
I am not sure if this simulator issue maybe?
I set text programmatically in -viewDidLoad
If I not set text in viewDidLoad:
If I set text in viewDidLoad:
Upvotes: 1
Views: 899
Reputation: 27153
I found the issue if I uncheck Selectable checkbox in storyboard for UITextView then it causes this issue if I set text form the code. When I mark it checked again then it resolves my issue.
Upvotes: 7