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]; }
source share