Skip to content

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

Notifications You must be signed in to change notification settings

AdamRobertsEF/UIWebView-YouTube--iOS-Category--ARC-compliant-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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];





About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages