I have a string made of three strings like this
NSString *first = ..;
NSString *second = ..;
NSString *third = ..;
NSString joinedString;
joinedString = [NSString stringWithFormat:@"%@ - %@ (%@)", first, second, third];
Now I need to get back the three original strings from joinedString
. I've read somewhere that I should use NSScanner
for this. Any ideas how that might work?