```
- (NSString*)RemoveSpecialCharacters:(NSString*)str{
NSString*string = str;
string = [stringstringByReplacingOccurrencesOfString:@"+86" withString:@""];
NSCharacterSet *setToRemove = [[ NSCharacterSet characterSetWithCharactersInString:@"0123456789"]invertedSet];
string = [[stringcomponentsSeparatedByCharactersInSet:setToRemove]componentsJoinedByString:@""];
returnstring;
}
```
网友评论