Search code examples
objective-cnsstringunichar

Objective C ==> unichar[] to NSString?


I have an array of unichars i need to convert it to nsstring. How can i do this?


Solution

  • NSString has a method for that:

    + (id)stringWithCharacters:(const unichar *)chars length:(NSUInteger)length