NSString *str = @"139-8980-9340";
str = [strlstringByReplacingOccurrencesOfString:@"-"withString:@""];
NSLog(@"%@",str);
結果為:13989809340
NSString *str = @"139-8980-9340";
str = [strlstringByReplacingOccurrencesOfString:@"-"withString:@""];
NSLog(@"%@",str);
結果為:13989809340