我有一個標籤欄應用程序,我的一個標籤頁的視圖控制器將webview加載到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