Possible Duplicate:
Convert from char* to NSString?
I have char myChar = 'r'
How do I convert it to a NSString
?
NSString* string = @"r";
char myChar = 'r';
NSString* string = [NSString stringWithFormat:@"%c" , myChar];
char myChar = 'a';
NSString * string = [NSString stringWithFormat:@"%c", myChar];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With