0
你們中的任何一個人都知道如何使用應用程序內部的proxys加載uiwebview?ios如何使用webproxy加載uiwebview
NSURL *site =[NSURL URLWithString:@"http://mydomain.com/"];
NSURLRequest *request =[NSURLRequest requestWithURL:site];
[_webLoad loadRequest:request];
我真的很感謝你的幫忙。
該專家不起作用 – Juan
什麼錯誤顯示給你? –
每次我試圖加載任何網址我得到這個錯誤:501 - 沒有實現。不存在處理http://127.0.0.1:8080/?url=http%3A%2f%2fgoogle.com的處理程序。即使我在代理實現文件中更改此行:location = [NSString stringWithFormat:@「http://187.144.130.247:8080?url=%@」,[[NSURL URLWithString:location relativeToURL:[[self realRequest] url ]] absoluteString]]; – Juan