獲取到的'translatPoint':
1)有方向(分正負(fù))
2)取值是相對于'自身原點(diǎn)(0,0)'(自己左上角的點(diǎn))移動了多少
CGPoint translatPoint = [pan translationInView:self.view]
2016-11-23 16:48:43.022 WXSideMenuExample[25268:5860659] 27.000000 0.000000
2016-11-23 16:48:43.206 WXSideMenuExample[25268:5860659] 39.000000 4.000000
2016-11-23 16:49:43.682 WXSideMenuExample[25268:5860659] -16.000000 14.000000
2016-11-23 16:49:43.766 WXSideMenuExample[25268:5860659] -16.500000 14.000000
獲取到的'localPoint':
1)無方向
2)取值是 手指tap的那個'點(diǎn)'埃难,在self.view的位置坐標(biāo);
CGPoint localPoint = [pan locationInView:self.view];
2016-11-23 16:49:43.683 WXSideMenuExample[25268:5860659] 205.500000 465.500000
2016-11-23 16:49:43.767 WXSideMenuExample[25268:5860659] 205.000000 465.500000
2016-11-23 16:49:43.817 WXSideMenuExample[25268:5860659] 204.500000 465.500000
2016-11-23 16:49:43.865 WXSideMenuExample[25268:5860659] 204.000000 466.000000
獲取到的'velocityPoint':
1)有方向
2)取值是 速度;
CGPoint velocityPoint = [recognizer velocityInView:self.view]
以上兩個鲁猩,一個是移動量的體現(xiàn)糠惫,一個是相對view的位置
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者