How can I split the string @\"Hello\" to either:
\'H\', \'e\', \'l\', \'l\', \'
Try this :
- (void) testCode
{
NSString *tempDigit = @"12345abcd" ;
NSMutableArray *tempArray = [NSMutableArray array];
[tempDigit enumerateSubstringsInRange:[tempDigit rangeOfString:tempDigit]
options:NSStringEnumerationByComposedCharacterSequences
usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) {
[tempArray addObject:substring] ;
}] ;
NSLog(@"tempArray = %@" , tempArray);
}