WebView Failed error in iPhone
I am trying to load website开发者_开发百科 in webview.But i am getting error. Please correct me where i am wrong
URL : http://www.facebook.com/pages/Fresh-Caesar/144860502248864 Error : The operation couldn’t be completed. (WebKitErrorDomain error 101.)
We can resolve this problem by using string encoding
NSString *encodedString=[siteUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *weburl = [NSURL URLWithString:encodedString];
Maybe look at WebKitErrorDomain error 101 for reference. Need to see more of your code though. Can you provide listing?
精彩评论