ios - Append ASCII symbol to the string -
i have string , ascii code in hex 0x1111
. how can append ascii code @ end/beginning of string see symbol of code?
nsstring* = @"some";
the simplest way:
nsstring *some = @"some"; = [[@"@\u1111" stringbyappendingstring:some] stringbyappendingstring:@"@\u1111"]; nslog(@"some: %@", some);
returns:
some: @ᄑsome@ᄑ
Comments
Post a Comment