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.
我相信str = [str stringByReplacingOccurrencesOfString:@"Ô" withString:@"ü"];这就是你想要做的。
str = [str stringByReplacingOccurrencesOfString:@"Ô" withString:@"ü"];
stringByReplacingOccurrencesOfString:withString:不会更改您正在调用的字符串,但会返回一个带有替换字符的新字符串。
stringByReplacingOccurrencesOfString:withString: