iPhone animation based on input values (touches) not time

后端 未结 5 1414
粉色の甜心
粉色の甜心 2020-12-28 20:30

For an animation effect perfectly suited to an animation group approach as shown in Brad Larson\'s answer here, I need the animation to proceed according to inputs. Specific

5条回答
  •  太阳男子
    2020-12-28 20:47

    velocity = distance/time. You can try by giving delay according to touches moved and time. You can calculate time between touchesBegan and touchesEnded methods.

提交回复
热议问题