1

我有以下字符串。

"phone" : "555-522-8243",
"name" : "Anna Haro"

我想替换"/". 我怎样才能做到这一点?

4

1 回答 1

0
NSString* yourNewString=  [yourOldaString stringByReplacingOccurrencesOfString:@"\"" withString:@"/\""];
NSLog(@"\n New String %@",yourNewString);
于 2012-12-27T11:48:33.073 回答