Casting or converting a char to an NSString in Objective-C -
how convert char nsstring in objective-c?
not null-terminated c string, simple char c = 'a'
.
you can use stringwithformat:
, passing in format of %c
represent character, this:
char c = 'a'; nsstring *s = [nsstring stringwithformat:@"%c", c];
Comments
Post a Comment