Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

MrPenguin9

macrumors member
Original poster
How do you tell it during the button is held down do this, and when you let go of the button do this?

Thanks so much
 
In Interface Builder add a couple of IBActions for (respectively) Touch Down and Touch Up Inside.
 
And if you want to do it programatically, then you'd go

Code:
[myButton addTarget:self action:@selector(touchDownAction:) forControlEvents:UIControlEventTouchDown];
[myButton addTarget:self action:@selector(touchUpAction:) forControlEvents:UIControlEventTouchUpInside];
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.