OC:
NSString* string2 = [string1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
swift:
guard let URL = course.courseImageURL?.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding) else{return ""}
return URL
OC:
NSString* string2 = [string1 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
swift:
guard let URL = course.courseImageURL?.stringByAddingPercentEscapesUsingEncoding(NSUTF8StringEncoding) else{return ""}
return URL
本文标题:9 -- URL中有中文
本文链接:https://www.haomeiwen.com/subject/dhgvsttx.html
网友评论