Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有以下字符串。
"phone" : "555-522-8243", "name" : "Anna Haro"
我想替换" 为/". 我怎样才能做到这一点?
"
/"
NSString* yourNewString= [yourOldaString stringByReplacingOccurrencesOfString:@"\"" withString:@"/\""]; NSLog(@"\n New String %@",yourNewString);