objective c - webViewDidFinishLoad not being called with loadHTMLString -
so loads when app launches
nsstring *youtubevideohtml = [nsstring stringwithformat:@"<html><head>" "<meta name = \"viewport\" content = \"initial-scale = 1.0, user-scalable = no, width = 200\"/></head>" "<body style=\"background:#fffff;margin-top:0px;margin-left:0px\">" "<div><object width=\"320\" height=\"200\">" "<param name=\"wmode\" value=\"transparent\"></param>" "<embed src=\"http://www.youtube.com/v/%@&app=youtube_gdata\"" "type=\"application/x-shockwave-flash\" wmode=\"transparent\" width=\"320\" height=\"200\"></embed>" "</object></div></body></html>", [[nsuserdefaults standarduserdefaults] objectforkey:@"detailvideourl"]]; [self.webview loadhtmlstring:youtubevideohtml baseurl:nil];
althogh webviewdidfinishload
not being called, have idea why that's happening ?, i've added uiwebviewdelegate
.
@interface detailviewcontroller : uiviewcontroller <uiwebviewdelegate>
to working uiwebviewdelegate
methods connect uiwebview
delegate file's owner
....
Comments
Post a Comment