NSRange range = {NSNotFound, 0};
NSString *s = @"This is a smiley :) face";
range.location = 0;
range.length = [s length];
s = [s stringByReplacingOccurrencesOfString:@":)"
withString:@"\ue415"
options:NSCaseInsensitiveSearch
range:range];
iPhone contains by default a Japanese font, which supports unicode emoji characters. As a result you suddenly have built-in supports for about 460 graphical icons, all of which you can put anywhere as part of any text string!
Here's full list of emoji characters in iPhone. Have fun ;)
Hi,
ReplyDeleteThanks a million. This is what I have been looking for a month.
cheers
HI,
ReplyDeletefor me It is not working ,it's showing yes like this.
Is there need to add any framework?
please help