Skip to content

Instantly share code, notes, and snippets.

@jgold6
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save jgold6/9338143 to your computer and use it in GitHub Desktop.

Select an option

Save jgold6/9338143 to your computer and use it in GitHub Desktop.
public override void ViewDidLoad()
{
base.ViewDidLoad();
// Perform any additional setup after loading the view, typically from a nib.
UIWebView webView = new UIWebView(View.Frame);
this.View.AddSubview(webView);
string youTubeVideoHTML = @"<body><p>Testing</p><br><iframe width=""420"" height=""315"" src=""http://www.youtube.com/embed/Gw1ImiSR6Eg"" frameborder=""0"" allowfullscreen></iframe></body>";
webView.LoadHtmlString(youTubeVideoHTML, null);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment