NSString *str = @"123";
NSMutableString *str2 = [NSMutableString string];
[str enumerateSubstringsInRange:NSMakeRange(0, str.length) options:NSStringEnumerationReverse|NSStringEnumerationByComposedCharacterSequences usingBlock:^(NSString *substring, NSRange substringRange, NSRange enclosingRange, BOOL *stop) {
[str2 appendFormat:@"%@",substring];
}];
NSLog(@"%@",str2); |