Possible Duplicate:
How can we programmatically detect which iOS version is device running on?
How do I check if a device is running iOS 6? I need to check to see if the os is iOS 6 in order to change my youtube video urls because of the release notes from Apple on how to handle them in iOS6
As of iOS 6, embedded YouTube URLs in the form of http://www.youtube.com/watch?v=oHg5SJYRHA0 will no longer work. These URLs are for viewing the video on the YouTube site, not for embedding in web pages. Instead, the format that should be used is described in https://developers.google.com/youtube/player_parameters.
I was thinking of an if else statement to handle this.
thanks for any help