iOS UIWebView shows nothing but black background -
i use pushviewcontroller navigate webview (in navigation based app), , use nslog in webview check url. turns out url passed webview shows nothing except black background.
webviewcontroller *webview = [[webviewcontroller alloc] init]; [webview seturl:finalurl]; [self.navigationcontroller pushviewcontroller:webview animated:yes]; in webviewcontroller.m----viewwillappear:
nslog(@"%@", _url); // got url!!!!!!!!! [webview loadrequest:[nsurlrequest requestwithurl:_url]];
have connected web view outlet webview ? in .xib file
Comments
Post a Comment