How to do pinch gestures on the iPhone?

前端 未结 4 917
情话喂你
情话喂你 2021-02-02 01:46

How does one implement pinch gestures on the iPhone? I\'m familiar with using touch events on the iPhone but I\'m extremely lazy and don\'t want to re-invent the wheel for somet

4条回答
  •  故里飘歌
    2021-02-02 02:32

    hmmm.....it seems that some people are extremely confused on how to use basic math. the dot product is totally irrelavent and just confuses the issues. dot prod between 2 vectors is used to calculate the angle between them.

    You actually need to use pythagorus theorem. Dot is NOTHING to do with finding distance between points - only pythagorous!

提交回复
热议问题