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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -