i\'m trying to embed youtube video into my iphone application. I\'m using UIWebView and loading embed code from youtube as html string. So i have a layout with basic html markup
If you are developing your app for ios version 7 or above then you can use YTPlayerView
class available at Embed YouTube Videos in iOS Applications with the YouTube Helper Library. It is very easy to use and also provide full control on video player by using its delegate YTPlayerViewDelegate
. Hope this can help anyone.