Post

Replies

Boosts

Views

Created

UILabel Crash with Attributed Text
In Xcode version 10.0 and swift 4.2 my app crashes when setting the content of UILabel.attributedText and accessing any of UILabels variables.For examplelet label = UILabel()label.attrubitedText = NSAttirbutedText("String")label.sizeToFit() //this will crash the Applabel. (any method or variable) will crash the appIf you don't set the attributed text variable then any follow on calls to label work fine.What needs to be done to stop the crash?Help
Topic: UI Frameworks SubTopic: UIKit Tags:
7
0
5.8k
Oct ’18