iOS9.0 以后转码函数stringByAddingPercentEscapesUsingEncoding已经被废弃了。
替换方法是:
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding
修改为
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]
iOS9.0 以后转码函数stringByAddingPercentEscapesUsingEncoding已经被废弃了。
替换方法是:
stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding
修改为
stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]
本文标题:从最低适配 IOS8 升级 IOS9 部分废弃方法替换
本文链接:https://www.haomeiwen.com/subject/oglluktx.html
网友评论