stringByTrimmingCharactersInSet removes characters from the beginning and end of your string, not from any place in it
For your purpose use stringByReplacingOccurrencesOfString:withString: method as others pointed.
stringByTrimmingCharactersInSet removes characters from the beginning and end of your string, not from any place in it
For your purpose use stringByReplacingOccurrencesOfString:withString: method as others pointed.
转载于:https://my.oschina.net/junfrost/blog/155467