objective c - How to repeatedly do an event on touch a button -


I touch these codes inside the event of a button to increase the number in the UILB:

< Pre> integer score = [lblScore.text intValue]; Score ++; LblScore.text = [NSString stringWithFormat: @ "% i", score];

I want to press and hold down the button, add up to the release button repeatedly.

Touch up fire, as it says, when your figure is picked up by the button.

To do this, you will need to start the loop inside touchdown: and touchup:


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -