UIWebView: Error while loading URL

后端 未结 3 617
隐瞒了意图╮
隐瞒了意图╮ 2021-01-18 20:46

I am trying to build an RSS reader for the Tom\'s Hardware website.

I have an error when I try to load an URL into an UIWebview from an RSS link.

Here\'is my

3条回答
  •  后悔当初
    2021-01-18 21:31

    Thanks guy, that'it, I have split the URL like this:

    NSArray *split = [url componentsSeparatedByString:@"#"];

    NSURL *requestUrl = [NSURL URLWithString:[[split objectAtIndex:0] stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
    

    and now it work , thanks for your help !

提交回复
热议问题