title: Why Is Youtube Video Not Filling UiWebView?
body: <p>I'm a noob to iphone development and I am having trouble displaying an embedded youtube video within a UIwebview.  Currently, the youtube video sits in the top left hand corner of the uiwebview and it also has an annoying border.  I set the youtube frame to the same dimensions as my uiwebview and the webview is set to "scale to fit".  How do I make my youtube content fit the entire screen and get rid of the border?  Any help is greatly appreciated.</p>
  
  <p>MY CODE</p>
  
  <pre><code>NSString *video_ID = youtubeid;
  NSString *htmlStr = [NSString stringWithFormat:@"&lt;iframe class=\"youtube-player\" type=\"text/html\" width=\"320\" height=\"230\" src=\"http://www.youtube.com/embed/%@\" frameborder=\"0\"&gt;&lt;/iframe&gt;",video_ID];
  [videoScreen loadHTMLString:htmlStr baseURL:nil]; 
  </code></pre>
  
  <p>EDIT</p>
  
  <pre><code> NSString *video_ID = youtubeid;
  NSString *htmlStr = [NSString stringWithFormat:@"&lt;iframe class=\"youtube-player\" type=\"text/html\" width=\"100%\" height=\"100%\" src=\"http://www.youtube.com/embed/%@\" frameborder=\"0\"&gt;&lt;/iframe&gt;",video_ID];
  [videoScreen loadHTMLString:htmlStr baseURL:nil]; 
  </code></pre>