Ok, I have a view that basically is a UIWebView that pulls up the mobile youtube site. Everything works perfectly but when I play the videos they only show in Portrait and don't allow me to turn it sideways to get a Landscape look so that the video takes up the screen.
Now I have tried all of the orientation codes but when I apply them it causes my application to hang at the splash screen... is there something else I should be setting besides just adding this code? Also, the youtube view of my app is not the first view that shows when the app launches.
I looked in IB and didn't really see anything that gives the view authority to switch orientation. I only see the option to make it Portrait or Landscape.
Now I have tried all of the orientation codes but when I apply them it causes my application to hang at the splash screen... is there something else I should be setting besides just adding this code? Also, the youtube view of my app is not the first view that shows when the app launches.
Code:
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations
return YES;
}
I looked in IB and didn't really see anything that gives the view authority to switch orientation. I only see the option to make it Portrait or Landscape.