Sitting with this for hours, I found the bug.
If the property “Selectable” = NO it will reset the font and fontcolor when setText is used.
So turn Selectable ON and the bug is gone.
More Related Contents:
- Can I embed a custom font in an iPhone application?
- How do I size a UITextView to its content?
- Placeholder in UITextView
- How to lose margin/padding in UITextView
- Counting the number of lines in a UITextView, lines wrapped by frame size
- UITextView cursor below frame when changing frame
- How to get boolean value from switch state?
- Async image loading from url inside a UITableView cell – image changes to wrong image while scrolling
- When is layoutSubviews called?
- Number of days between two NSDates [duplicate]
- Save string to the NSUserDefaults?
- Detecting taps on attributed text in a UITextView in iOS
- Getting a list of files in a directory with a glob
- Detect when an iOS app is launched for the first time? [closed]
- How to ignore touch events and pass them to another subview’s UIControl objects?
- Finding smallest and biggest value in NSArray of NSNumbers
- Testing CoreLocation on iPhone Simulator
- What is the right way to check for a null string in Objective-C?
- Dismiss keyboard on touch anywhere outside UITextField
- iPhone “slide to unlock” animation
- Where to store global constants in an iOS application?
- Is it possible to distinguish between locking the device and sending an app to background?
- How can I change the font of the back button for my navigation bar?
- custom font not working programmatically in swift
- how to make UITextView height dynamic according to text length?
- Catch an exception for invalid user input in swift
- How to add a Container View programmatically
- How to copy text to clipboard/pasteboard with Swift
- UITextView: Disable selection, allow links
- How do you REALLY remove Copy from UIMenuController