7.0+
[string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLPathAllowedCharacterSet]];
7.0-
[string stringByAddingPercentEscapesUsingEncoding:NSUTF8Encoding];
本文共 229 字,大约阅读时间需要 1 分钟。
7.0+
[string stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLPathAllowedCharacterSet]];
7.0-
[string stringByAddingPercentEscapesUsingEncoding:NSUTF8Encoding];
转载于:https://my.oschina.net/lavzchen/blog/494940