ios - Identify the touch moved direction -


i doing view resize,move , rotate on single touch.

i trying find touch moved direction like,

if touch moved direction horizontal or vertical move view. if touch moved direction diagonal resize. , if touch moved rotate gesture rotate view.

i able identify horizontal or vertical direction.

please suggest me how can identify diagonal , rotation.

i guess rotation, can use mehod -(void)touchesmoved:(nsset *)touches withevent:(uievent *)event.

and diagonal, can compare coordinates of both points. diagonal, can take post also.


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -