Sezhian
Sezhian

Reputation: 333

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.)

Upvotes: 3

Views: 7151

Answers (2)

Himanshu A Jadav
Himanshu A Jadav

Reputation: 2306

We can resolve this problem by using string encoding

NSString *encodedString=[siteUrl stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSURL *weburl = [NSURL URLWithString:encodedString];

Upvotes: 15

David Neiss
David Neiss

Reputation: 8237

Maybe look at WebKitErrorDomain error 101 for reference. Need to see more of your code though. Can you provide listing?

Upvotes: 0

Related Questions