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

Setting long String to UILabel Freezing my app with undetected error

$
0
0

(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 have tried setting up UILabel with shorter string, and it succeeded! I have tried using DispatchQueue while setting up UILabel, but it keep freezing too without showing error log.

DispatchQueue.main.asyncAfter(deadline: .now() + 1.0) {
           contentLabel.text = text  }

How can i fix it? It makes me stuck for a few days.

Edit : I've tried to hardcode value of string. this is exactly the line where problem occured this is exactly the line where problem occured


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>