Sorry guys, I'm very new to web dev. I have the below string :
Mark sent $USD 100 to Olivia.
I'm getting this sentence in a UIWebView
. So the string is essentially below:
NSString whatHappened = [NSString stringWithFormat: @"Mark sent <b>%@</b> to %@", amount, receiver];
NSString receiver = "Olivia"
NSString amount = "$USD 100"
Now, I basically want it to be so that, the $USD 100
is reversed, so it is: 100 $USD
. How can I possibly achieve this? I have multiple things to send too, such as 100 Apples
etc., so a simply reverse on the amount
string won't work. Any suggestions on how I can change this in the HTML string?