title: Opening youTube in iOS not work
body: <p>I'm trying to create a youtube app in my app </p>
  
  <p>Mt source code to load webView is:</p>
  
  <p>ViewController header file:</p>
  
  <pre><code>@interface ViewController : UIViewController
  
  @property (nonatomic, strong) UIWebView *webView;
  
  @end
  </code></pre>
  
  <p>ViewController implementation file
      - (void)viewDidLoad {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.</p>
  
  <pre><code>self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, 300, 200)];
  self.webView.layer.borderWidth = 1.0;
  self.webView.layer.borderColor = [UIColor redColor].CGColor;
  
  self.webView.backgroundColor = [UIColor blackColor];
  
  self.webView.center = self.view.center;
  
  [self.view addSubview:self.webView];
  
  NSString* embedHTML = @"\
  &lt;html&gt;&lt;head&gt;\
  &lt;style type=\"text/css\"&gt;\
  body {\
      background-color: transparent;\
  color: white;\
  }\
  &lt;/style&gt;\
  &lt;/head&gt;&lt;body style=\"margin:0\"&gt;\
  &lt;embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
  width=\"%0.0f\" height=\"%0.0f\"&gt;&lt;/embed&gt;\
  &lt;/body&gt;&lt;/html&gt;";
  
  NSURL *url = [NSURL URLWithString:@"https://www.youtube.com/watch?v=K14RnTVt194"];
  
  NSString* html = [NSString stringWithFormat:embedHTML, url, self.webView.frame.size.width, self.webView.frame.size.height];
  
  [self.webView loadHTMLString:html baseURL:nil];
  </code></pre>
  
  <p>}</p>
  
  <p>When run, my app crashes and gives me the following screen</p>
  
  <p><a href="https://i.stack.imgur.com/juy49.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/juy49.png" alt="enter image description here"></a></p>
  
  <p>How to solve this issue?</p>