【问题标题】:How can i know the swinging direction of the ios device in ios programming?ios编程中如何知道ios设备的摆动方向?
【发布时间】:2012-06-18 02:44:37
【问题描述】:

我是IOS编程新手,不知道如何判断设备的摆动方向。而且我为这个问题搜索了很长时间,但我发现的很少。有人可以帮我吗?非常感谢!

【问题讨论】:

  • 你找到解决办法了吗?

标签: iphone gravity uiaccelerometer cmmotionmanager


【解决方案1】:

试试这个:

我搜索到一些职位给你,希望能帮助。 P>

how to detect direction of shake in iphone

How to determine the direction of a iPhone shake

【讨论】:

  • 对不起,我说的意思是不是这样,我想问问如何判断方向(到最大,向左,向右,向下),通过晃动iOS设备的用户。感谢您的回答!
  • @ Abel_CN我的错误,我发现了一些帖子,希望能帮助。 SPAN>
  • 在我的项目,我需要检测x和y的方向,而且我发现x的加速和Y都变大了,这让我很纠结! SPAN>
猜你喜欢
  • 2011-12-19
  • 2014-01-26
  • 1970-01-01
  • 2013-10-10
  • 2020-02-08
  • 1970-01-01
  • 1970-01-01
  • 2015-01-23
  • 1970-01-01
相关资源
最近更新 更多