How can you enable the iOS 6.0 panorama camera within an application?

99封情书 提交于 2019-11-29 04:01:54

问题


I'm working on an app for iOS 6 that utilizes the camera, but I've been unable to figure out how to enable the options which would allow the user to take a panoramic shot. I've got everything working as far as taking a normal photo goes, but would like to give the user the option to use the new panorama feature in iOS 6 in the app.

I've scoured the net and not been able to find any information (SO, Apple Dev Center, etc). I'm unable to determine whether this is even a possibility or not. Can we use this, and if so, how?


回答1:


This is not possible. Access to the camera is only possible via UIImagePickerController or through AVFramework, and neither of these provide this functionality.

AVFramework gives you the data stream from the camera, and you have to handle that yourself. Unless you want to implement your own panoramic feature, this isn't appropriate.

Whilst there are settings to adjust flash, video/image and rear/front in UIImagePickerController, there are none to enable the native panoramic feature.

In a similar vain to HDR photographs, Panoramic capture is only available within the Camera app.



来源:https://stackoverflow.com/questions/12666523/how-can-you-enable-the-ios-6-0-panorama-camera-within-an-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!