我的应用中有一个嵌入式YoutTube视频.整个应用程序仅锁定在纵向运行,但我希望一旦用户点击缩略图上的播放按钮,视频就可以在横向播放.以下是嵌入式YouTube视频的代码.
//
// YouTubeView.h
// KFBNewsroom
//
// Created by KFB on 11/8/12.
// Copyright (c) 2012 com.kfb. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface YouTubeView : UIViewController
{
IBOutlet UIWebView *thumbnailView;
}
@property (nonatomic, retain) IBOutlet UIWebView *thumbnailView;
@end
//
// YouTubeView.m
// KFBNewsroom
//
// Created by KFB on 11/8/12.
// Copyright (c) 2012 com.kfb. All rights reserved.
//
#import "YouTubeView.h"
@interface YouTubeView ()
@end
@implementation YouTubeView
@synthesize thumbnailView;
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super …Run Code Online (Sandbox Code Playgroud)