在iOS SDK中检测设备旋转/移动 [英] Detect Device Rotation/Movement in iOS sdk

查看:117
本文介绍了在iOS SDK中检测设备旋转/移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要检测设备的移动情况&就像我们拍摄全景图片时一样。

I want to detect the device movement & Rotation just like when we are taking the Panorama Picture.

我想移动图片与我们捕获全景图片时的箭头相同。

I want to move the Image same as the arrow while we capture Panorama Image.

有很多应用谁使用了此功能,但我无法为此找到任何东西。

There are many apps who uses this functionality but I can't able to find anything for this.

帮我解决这个问题。

谢谢

推荐答案

我认为您需要在iphone中使用运动传感器,但这不会给您准确的结果。

I think you need to use motion sensor in iphone ,But it wont give you the accurate result.

运动是什么iPhone SDK到底给出了什么?

但是我从下面的链接中提供了运动传感器委托方法代码。

But i am providing the motion sensor delegate methods code from this below link.

我如何检测到何时有人摇了iPhone?

验证此链接,您可以从中获得答案。

Verify this link you can have answer from this.

这篇关于在iOS SDK中检测设备旋转/移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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