mardi 24 mars 2015

TTAtributedLabel crash with unicode characters

I have two TTAtributedLabel with vertical space constraint 50. When both contains same unicode characters as below code, the app is crashing. But if any of the label contains ASCII characters, then it works fine. When using Label instead of TTAtributedLabel, the code works fine. The debugger stops at CTFramesetterSuggestFrameSizeForAttributedStringWithConstraints, which says no instance found. Can anyone help me out what I am missing here



NSString *string1 = @"\u0936\u093e\u0939\u0930\u0941\u0959 \u092b\u0948\u0902\u0938 \u0915\u094b \u0906\u091c\u0924\u0915 \u092f\u0947 \u0917\u0932\u0924\u092b\u0939\u092e\u0940 \u0939\u0948 ,2011 \u0915\u093e \u0935\u0930\u094d\u0932\u094d\u0921 \u0915\u092a \u092d\u093e\u0930\u0924\u0940\u092f \u091f\u0940\u092e \u0928\u0947 \u091a\u0915 \u0926\u0947 \u0907\u0902\u0921\u093f\u092f\u093e \u0926\u0947\u0916\u0915\u0930 \u091c\u0940\u0924\u093e \u0925\u093e";

self.label1.text = string1;
self.label2.text = string1;


Here is the link for the sample project


http://ift.tt/1DTruxs




Aucun commentaire:

Enregistrer un commentaire