I am building an app in which i will be having a UIButton
named Watch Video
on clicking the button the YouTube app/web should be opened with the respective youtube ID.
I saw code to embed YouTube videos in iOS but i did not find anything of this sort. Any ideas would be really helpful.
This way you first check if the YouTube app is installed on a device, and then open the app or else go to Safari.