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的帧速率......
我认为值得补充的是,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)
归档时间: |
|
查看次数: |
18104 次 |
最近记录: |