2010-08-20 84 views
2

我试图镜像一个简单的新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; 
} 

回答

1

我看到了相同的行为。我认为它使用的技术意味着您必须在真实设备上进行测试。对于我来说,真实设备(iPad)上的相同代码运行良好。