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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -