iPad VGA连接器 - 镜像屏幕在自己的应用程序?

x2o*_*2on 19 vga ipad

是否可以通过VGA连接器镜像屏幕?什么都找不到.

Fra*_* P. 35

我一直在找你.上周末我写了一个小的UIApplication类别来添加镜像支持.我发布了Google Code上的代码.

http://code.google.com/p/iphoneos-screen-mirroring/

要使用它,您只需在应用程序委托的应用程序中完成设置即可完成设置.像这样:

[[UIApplication sharedApplication] setupScreenMirroringOfMainWindow:mainWindow framesPerSecond:20];
Run Code Online (Sandbox Code Playgroud)

上周末我只有一次机会在带有Apple AV输出线的大屏幕电视上试用它.性能不是很好,因此我不建议使用高于30 fps的帧速率......

  • 正如其他人所指出的那样,这会使用一次又一次的私有`UIGetScreenImage()`API,如果你将这个应用程序提交到App Store,将导致拒绝. (3认同)

Rob*_*Rob 5

我认为值得补充的是,QuartzCore框架是强制性的,否则在编译时你会遇到4个错误.

Undefined symbols:
  "_CATransform3DMakeRotation", referenced from:
      -[UIApplication(ScreenMirroring) updateMirroredWindowTransformForInterfaceOrientation:] in UIApplication+ScreenMirroring.o
      -[UIApplication(ScreenMirroring) updateMirroredWindowTransformForInterfaceOrientation:] in UIApplication+ScreenMirroring.o
      -[UIApplication(ScreenMirroring) updateMirroredWindowTransformForInterfaceOrientation:] in UIApplication+ScreenMirroring.o
  "_kCAGravityResizeAspect", referenced from:
      _kCAGravityResizeAspect$non_lazy_ptr in UIApplication+ScreenMirroring.o
     (maybe you meant: _kCAGravityResizeAspect$non_lazy_ptr)
  "_OBJC_CLASS_$_CADisplayLink", referenced from:
      objc-class-ref-to-CADisplayLink in UIApplication+ScreenMirroring.o
  "_CATransform3DIdentity", referenced from:
      _CATransform3DIdentity$non_lazy_ptr in UIApplication+ScreenMirroring.o
     (maybe you meant: _CATransform3DIdentity$non_lazy_ptr)
ld: symbol(s) not found
collect2: ld returned 1 exit status
Run Code Online (Sandbox Code Playgroud)