I have a string say "Allentown, pa"
"Allentown, pa"
How to remove the white space in between , and pa using objective c?
,
pa
This will remove all space from myString.
myString
NSString *newString = [myString stringByReplacingOccurrencesOfString:@" " withString:@""];
1.4m articles
1.4m replys
5 comments
57.0k users