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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -