I want to add format currency for a textfield in a UIAlertview. However, I don't have any solution about this. Can you help me if you know solution?
Thanks
I want to add format currency for a textfield in a UIAlertview. However, I don't have any solution about this. Can you help me if you know solution?
Thanks
NSNumberFormatter *formatter = [NSNumberFormatter new];
formatter.numberStyle = NSNumberFormatterCurrencyStyle;
NSString *cash = [formatter stringFromNumber:@5];
[[[UIAlertView alloc] initWithTitle:cash message:cash delegate:self cancelButtonTitle:nil otherButtonTitles:nil ] show];