启用UIImagePickerController上的照片库按钮 [英] Enabling the photo library button on the UIImagePickerController
问题描述
有人知道如何在相机模式下启用UIImagePickerController上的相册按钮吗?就像iphone上的相机应用程序如何在图像和视频拍摄之间切换一样,还有按钮来查看照片库?
Does anyone know how to enable the photo album button on the UIImagePickerController when its in the camera mode? Like how the camera app on on the iphone can toggle between image and video taking and also has the button to view the photo library?
推荐答案
我担心这不能以那么简单的方式完成(只需启用或禁用某些魔术功能)。对于一些简单的要求,您可以使用 cameraOverlayView 和 showsCameraControls to实现。
I'm afraid that this can't be done in that easy way (just enable or disable some magic feature). For some simple requirement, you can use cameraOverlayView and showsCameraControls to make the implementation.
如果你想在照片/视频模式之间切换,我想你可以查看这个演示: http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html
If you want to switch between photo/video mode, i think you can check this demo: http://developer.apple.com/library/ios/#samplecode/AVCam/Introduction/Intro.html
这篇关于启用UIImagePickerController上的照片库按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!