Skip to content Skip to sidebar Skip to footer

Ios Uiwebview Title Doesn't Update Unless Calling This Code Twice

Webpage title doesn't update unless I call the method twice NSURL *yourURL = [NSURL URLWithString: webpageURLLabel.text ]; NSURLRequest *request = [[NSURLRequest alloc] initWithURL

Solution 1:

I guess your request is not finished, so you're too early to call a javascript on that page. You should make the calling class a delegate of your webview and set the title on webViewDidFinishLoad:


Post a Comment for "Ios Uiwebview Title Doesn't Update Unless Calling This Code Twice"