I'm trying to convert NSString to NSArray of characters by I haven't found a way to do it.
Here is my code:
NSString *one = @"abc";
const char *charOne= [one UTF8String];
But if I try to convert NSArray:
NSArray *arrayOne = [[NSArray alloc] initWithArray:(NSArray*)charOne];
I get this error: Cast of non-Objective-C pointer type const char * to NSArray is disallowed in ARC
My question to guys, how can I can convert NSString to NSArray of characters?
I'll really appreciate your help