IOS UITextView setText EXC_BAD_ACCESS

I get EXC_BAD_ACCESS if I set some text in Urdu

txtDetailLandscape.text = @"مير‎";

If I install some English string, it works fine.

txtDetailLandscape is mine UITextViewin landscape mode with a weak property, while there is another one UITextViewthat works in both cases.

Really strange error, cannot understand why it gives the EXC_BAD_ACCESS error, and this problem is only in iOS7 not in iOS6.

PS I want all utf-8 languages ​​to display not only Urdu

+4
source share
1 answer

txtDetailLandscape, "", - ARC. "", .

0

Source: https://habr.com/ru/post/1543012/


All Articles