Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
UIWebView category to simplify loading YouTube Videos in UIWebViews on iOS. This only works on device, since the simulator is missing the youtube flash plugin hack
Objective-C
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README
UIWebView+YouTube.h
UIWebView+YouTube.m

README

UIWebView+YouTube iOS category to simplify loading youtube videos.

Instructions

1) Add these files to your project

   UIWebView+YouTube.h
   UIWebView+YouTube.m

2) Initiate UIWebView for example

   @property (strong, nonatomic) UIWebView *webView;
   @synthesize webView = _webView

   _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0,0,212,172];
   //set the X,Y origin of CGRect to where you want the webView to appear.

   _webView.delegate = self;
   [_webView loadYouTubeVideoID:@"gR8dO7Cln6M"];
   [self.view addSubView:_webView];





Something went wrong with that request. Please try again.