There is a syntax error in the following code:
[videoView loadHTMLString:videoHTML baseURL:nil];
statement of this code but i m unable to 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];
}
src="httpdoesn't look familiar? Perhaps your code is missing something there?