镜像iPad屏幕为VGA
问题描述:
我试图镜像一个简单的新TabBarApplication用的iPhoneOS屏幕镜像适用于iPad的屏幕:镜像iPad屏幕为VGA
http://code.google.com/p/iphoneos-screen-mirroring/
每次(还没有包括代码),如果我尝试激活在模拟器模式下TV输出应用程序崩溃没有错误。
如果外部电视输出被激活,它会变黑(代码包括)。
的appDelegate:
#import "iPadVGAAppDelegate.h"
#import "UIApplication+ScreenMirroring.h"
@implementation iPadVGAAppDelegate
@synthesize window;
@synthesize tabBarController;
#pragma mark -
#pragma mark Application lifecycle
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] setupScreenMirroringWithFramesPerSecond:20.0];
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
return YES;
}
答
我看到了相同的行为。我认为它使用的技术意味着您必须在真实设备上进行测试。对于我来说,真实设备(iPad)上的相同代码运行良好。
答
看看这里http://www.touchcentric.com/blog/archives/123
Rob Terrell's TVOutManager是解决方案。
下一行是所有你的需要:[[TVOutManager sharedInstance] startTVOut];
我个人无法得到这样要么工作.. – stan229 2011-06-16 18:11:41