webview加载含有中文的url显示空白

// 在类目中添加这个方法
- (NSString *)URLEncodeString {
    NSCharacterSet *set = [NSCharacterSet URLQueryAllowedCharacterSet];
    NSString *encodedString = [self stringByAddingPercentEncodingWithAllowedCharacters:set];
    return encodedString;
}

© 2017. All rights reserved.

Powered by Hydejack v7.5.0