OC支持包含中文Url

NSString *urlStr = [modelItem.picturelink stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet characterSetWithCharactersInString:@"`#%^{}\"[]|\\<> "].invertedSet];

 NSURL*url = [NSURLURLWithString:urlStr];

你可能感兴趣的:(OC支持包含中文Url)