Say I have a string which is £23.56 or $23.56 how can I convert it into -23.56 ?
I have this part
NSMutableString *strAmount = [NSMutableString stringWithString:txtAmount.text];
[strAmount replaceCharactersInRange: [strAmount rangeOfString: strCurrencySymbol] withString:@""];
That looks like a good start. You could use
rangeOfCharacterFromSet:instead ofrangeOfString:though after creating a set of currency symbols. Your code could look like this: