ios - Can't Load Webpage with // in it to UIWebview -


i having difficulties gettin webpage load in app. think issue has having back / in @ 1 point, not sure how work around this. url want visit http://kaiopublications.org/content//iluminatevol1.1/index.html

here code:

- (void)viewwillappear:(bool)animated {     nsstring *html = _entry.articleurl;          nsurl *url = [nsurl urlwithstring:html];     nslog(@"url%@", html);     [_webview loadrequest:[nsurlrequest requestwithurl:url]];  } 

the log html comes correct address, if run log on url, comes null.

it must else or may need wait. tried myself , can load site url in test app. realize site did load on simulator regular internet connection. if try on device poor mobile bandwidth maybe takes long.

one more thought. there "noise" character @ end of string?

try see if that:

nsurl *url = [nsurl urlwithstring:@"http://kaiopublications.org/content//iluminatevol1.1/index.html"]; [_webview loadrequest:[nsurlrequest requestwithurl:url]]; 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -