Quantcast
Channel: Setting long String to UILabel Freezing my app with undetected error - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by PGDev for Setting long String to UILabel Freezing my app with...

Try using DispatchQueue.main.async without any delay, i.e. DispatchQueue.main.async {[weak self] in self?.contentLabel.text = text } The above code is working perfectly fine for any length text.

View Article



Image may be NSFW.
Clik here to view.

Setting long String to UILabel Freezing my app with undetected error

(I use https://www.charactercountonline.com to count my string, then my string is 2253 characters) I want to set UILabel with long string, but my app keep getting freeze without error log in xcode. I...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images