标签: objective-c arrays nsstring
有没有办法将NSString分割成一个所有字母分开的数组?
类似的东西:
NSString *str = @"hey dude";
//Array output : h,e,y,d,u,d,e
答案 0 :(得分:0)
[stringToCopy getCString:c_buffer maxLength:c_buffer_length encoding:NSUTF8StringEncoding];