【问题标题】:How to move the arrow by dragging and then after that to toss/throw it?如何通过拖动来移动箭头,然后再扔/扔它?
【发布时间】:2011-02-01 07:18:24
【问题描述】:

在我的应用程序中,我有一个带有固定中心的箭头图像,我可以通过触摸移动方法在同一中心旋转它。

但我还需要在通过触摸移动进行一些旋转后扔/扔箭头。怎么扔箭?

【问题讨论】:

  • 折腾箭头,我猜是指旋转一会然后松开?这与你自己的一些物理计算有关
  • 是的,就像我通过触摸移动旋转箭头一段时间,而不是通过滑动事件在修复中心随机旋转它你有什么想法谢谢你的回复吗?

标签: cocoa-touch uigesturerecognizer uitouch swipe


【解决方案1】:

http://www.edumobile.org/iphone/iphone-programming-tutorials/how-to-use-gestures-in-iphone-application/

您可以参考此内容了解一些基本事件,例如滑动或触摸。

对于物理引擎,我想你可以参考这个: http://code.google.com/p/chipmunk-physics/

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-30
    • 2023-04-02
    • 1970-01-01
    • 2010-10-18
    • 2023-03-09
    • 2015-09-06
    • 1970-01-01
    相关资源
    最近更新 更多