Detect Device Rotation/Movement in iOS sdk

…衆ロ難τιáo~ 提交于 2019-12-08 13:57:48

问题


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.

Help me to solve this.

Thank you,


回答1:


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

What motion does iPhone SDK give exactly?

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

How do I detect when someone shakes an iPhone?

Verify this link you can have answer from this.



来源:https://stackoverflow.com/questions/18841413/detect-device-rotation-movement-in-ios-sdk

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