[Solved] How can I decode an NSString using the A1Z26 cipher? [closed]

In Objective C this can be done as follows: -(NSString *)decode:(NSString *)input { NSArray<NSString *> *components = [input componentsSeparatedByString:@”-“]; NSMutableString *output = [[NSMutableString alloc] init]; for (NSString *component in components) { if (component.length == 0) { continue; } char charValue = (char) [component intValue]; [output appendFormat:@”%c”, charValue + (‘a’ – 1)]; } return [NSString stringWithString:output]; … Read more