title: How to embed youtube video on iOS 7
body: <p>I had this code on my app which works perfectly on iOS 6.</p>
  
  <pre><code>     - (void)embedYouTube:(NSString *)urlString 
  {
         NSString *embedHTML =[NSString stringWithFormat:@"\
                    &lt;html&gt;&lt;head&gt;\
                    &lt;style type=\"text/css\"&gt;\
                    body {\
                    background-color: transparent;\
                    color: blue;\
                    }\
                    &lt;/style&gt;\
                    &lt;/head&gt;&lt;body style=\"margin:0\"&gt;\
                    &lt;iframe height=\"140\" width=\"325\"      src=\"http://www.youtube.com/embed/%@\"&gt;&lt;/iframe&gt;\
                    &lt;/body&gt;&lt;/html&gt;",urlString];
  [VideoView loadHTMLString:embedHTML baseURL:nil];
  }
  </code></pre>
  
  <p>In iOS 7 the VideoView shows the iframe, but when I tap the play button, it appears to load a new view to watch video but in a second it close itself. Why does this happen, and how to tweak it to work in iOS 7 too?</p>
  
  <h2><strong>Update</strong></h2>
  
  <p>Finally apple release a stabil iOS firmware. iOS 7.0.3 fixed the issues :)</p>