我想用自定义框架启动相机,这样我应该能够UIsearchBar
在同一个视图中显示,并且在触摸时UISearchBar
我需要关闭相机,但UIsearchBar
应该是可见的。所以我想停止相机以将整个 iPhone 屏幕作为框架。所以我想知道如何自定义相机屏幕?
user855698
问问题
670 次
1 回答
1
你基本上有两个选择。最简单的一种是使用 UIImagePickerController 的 cameraOverlayView 属性。这允许您在相机顶部显示视图:
如果您需要更详细的内容,可以使用 AVFoundation 框架。简而言之,它将允许您在视图中的任何位置显示相机流:http: //developer.apple.com/library/IOS/#documentation/AudioVideo/Conceptual/AVFoundationPG/Articles/04_MediaCapture.html#// apple_ref/doc/uid/TP40010188-CH5-SW2
这是一个关于如何使用 AVFoundation 拍照的简单教程:http: //www.musicalgeometry.com/? p=1297
于 2011-11-02T02:46:23.037 回答