我有一个标签栏应用程序,我的一个标签的视图控制器将 web 视图加载到 youtube 视频。我不知道为什么我点击播放并尝试观看视频时无法旋转。
这是我的代码
//
// 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