char arr[] = "abcdefg";
// I know I can do this
NSString *s = [[NSString alloc] initWithCString:arr encoding:NSUTF8StringEncoding];
If I want to convert part of the arr array into an NSString*? say cde rather then the whole string abcdefg? How do I achieve that?
1 Answer