我的字符串如下:
"phone" : "555-522-8243",
"name" : "Anna Haro"
我想把"
全都换成/"
,怎么样实现呢?
我的字符串如下:
"phone" : "555-522-8243",
"name" : "Anna Haro"
我想把"
全都换成/"
,怎么样实现呢?
NSString* yourNewString= [yourOldaString stringByReplacingOccurrencesOfString:@"\"" withString:@"/\""];
NSLog(@"\n New String %@",yourNewString);