如何在应用程序中启用iOS 6.0全景相机? [英] How can you enable the iOS 6.0 panorama camera within an application?

查看:64
本文介绍了如何在应用程序中启用iOS 6.0全景相机?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一款使用相机的iOS 6应用程序,但我一直无法弄清楚如何启用允许用户拍摄全景照片的选项。我拍摄了一张普通照片,但是我想让用户可以选择在应用程序中使用iOS 6中的新全景功能。



<我已经在网上搜索过,无法找到任何信息(SO,Apple Dev Center等)。我无法确定这是否是可能的。我们可以使用它,如果是这样,怎么办?

解决方案

这是不可能的。只能通过 UIImagePickerController 或通过 AVFramework 访问摄像头,这些都不能提供此功能。



AVFramework 为您提供来自摄像机的数据流,您必须自己处理。除非您想要实现自己的全景功能,否则这是不合适的。



虽然有设置可以调整闪光,视频/图像和后面/前面的 UIImagePickerController ,没有启用原生全景功能。



与HDR照片相似,全景捕捉仅可用在相机应用程序内。


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?

解决方案

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.

这篇关于如何在应用程序中启用iOS 6.0全景相机?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆