ios - Special Emoji doesn't present correctly in device -
i use unicode("\ue43b") in uilabel
, weird thing works in simulator not works in real device. code below:
uilabel *label = [[uilabel alloc] initwithframe:cgrectmake(0, 0, size.width, size.height)]; [self.view addsubview:label]; label.text = @"the emoji is:\ue43b"; label.textalignment = nstextalignmentcenter;
the result runs in simulator:
when run in device(iphone6 9.3.2), shows rectangle character.
i have search google \ue43b
, this site says:
this private use codepoint. is, deliberately not assigned character. added unicode in version 1.1 , belongs block private use area.
but still don't understand how simulator works, apps wechat can show emoji.
you using custom font on mac not using on iphone. note, not proper unicode code point. it's private-use character. code points can added fonts if desire.
the ios simulator mac application includes mac-compatible version of uikit. things available on mac available simulator, if not available on ios devices.
the particular character you're referencing u+1f38f (carp streamer). 🎏 don't know why have mapped u+e43b. it's possible have asian font has legacy code point (a common use of private use characters).
Comments
Post a Comment