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

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -