Parse Issue error in code

The following code has a syntax error:

[videoView loadHTMLString:videoHTML baseURL:nil]; 

of this code, but I can’t get it.

 - (void)embedYouTube { videoHTML = [NSString stringWithFormat:@"\ <html>\ <head>\ <style type=\"text/css\">\ iframe {position:absolute; top:50%%; margin-top:-130px;}\ body {background-color:#000; margin:0;}\ </style>\ </head>\ <body>\ <iframe width=\"560%%\" height=\"315px\" src="http://youtube.com/embed/-0Xa4bHcJu8" frameborder="0" allowfullscreen></iframe>\ </body>\ </html>", videoURL]; [videoView loadHTMLString:videoHTML baseURL:nil]; } 
-5
source share
1 answer

You need to avoid quotes around the url and frame:

 src=\"http://... 
+4
source

Source: https://habr.com/ru/post/947499/