I have a tab bar app, and my viewcontroller for one of my tabs loads a webview to a youtube video. I don't know why I can't rotate when I click play and try to watch the video.
Here is my code
//
// TefViewController.m
// SephardiJews
//
// Created by Yuval Marcus on 7/19/12.
// Copyright (c) 2012 iOS Developer, Chief Writer at Sephardijews.com. All rights reserved.
//
#import "TefViewController.h"
@implementation TefViewController
@synthesize tef;
-(void)viewDidLoad {
[super viewDidLoad];
[tef loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=YSuH69FlXiM"]]];
}
// Can't rotate landscape
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
@end