I need to call some method repeatedly by holding down the UIButton. Once i released the Button it should stop calling that method. how can i implement this functionality do anyone having idea about this means please help me to get out of this issue..Thanks in Advance.
Share
You can use
touchesBeganmethod to call this method andtouchesEndto stop this method.Inside the method you can use some loop-
fororwhileto call this method depending on condition, or you can start a timer to call this method intouchesBeganand invalidate the timer intouchesEnd.