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:@""];
2.1m questions
2.1m answers
60 comments
57.0k users