iPhone Programming - How to create a “hold down“ button

An Xcode 4 tutorial teaching you how to create a “hold down“ button so when they are “holding“ it down the action carries on and when they let go the action stops. Main Code: In the .h: IBOutlet UIImageView *image; NSTimer *goUp; NSTimer *goDown; NSTimer *goLeft; NSTimer *goRight; } -(IBAction)down; //Conected to “touch down“ -(IBAction)stopDown; //Connected tp “touchUpInside“ -(IBAction)up; //Conected to “touch down“ -(IBActio
Back to Top