uipangesturerecognizer - Count how long pan Gesture is being held -
i pretty new ios , first question here, sorry if find not full technical vocab yet
anyways possible calculate how long pan gesture being held? , use number in loop implement count?
for example user holding screen 5 sec , loop <= pangesturehold , i++
cheers
for view being touched implement methods - (void)touchesbegan:(nsset *)touches withevent:(uievent *)event
, - (void)touchesended:(nsset *)touches withevent:(uievent *)event
, , read current time in both methods. difference gives time view touched.
current time, can use [[nsdate date] timeintervalsince1970];
Comments
Post a Comment