iOS内置浏览器打不开长链接
作者:
隔墙送来秋千影 | 来源:发表于
2019-10-16 15:36 被阅读0次//将不需要转义的字符放到该字符串中
NSString *queryWord = @"汉字&ss";
NSString *escapedQueryWord = [queryWord stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet letterCharacterSet]];
NSString *urlString = [NSString stringWithFormat:urlStr, escapedQueryWord];
NSURL *url = [NSURL URLWithString:urlString];
NSURLRequest *req = [NSURLRequest requestWithURL:url cachePolicy:NSURLRequestReloadIgnoringLocalCacheData timeoutInterval:10];
[self.webView loadRequest:req];
本文标题:iOS内置浏览器打不开长链接
本文链接:https://www.haomeiwen.com/subject/fxyjuctx.html
网友评论