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
Post a Comment