i understand it's not typical to connect/call only one method for different control events, but i would like to know if it's even possible.
example: a button targets a method, but the method executes different code depending on if the button is being pressed or being released.
example: a button targets a method, but the method executes different code depending on if the button is being pressed or being released.
Code:
- (IBAction)buttonAction
{
if (UIControlEvent == UIControlEvenTouchDown) NSLog(@"button pushed");
if (UIControlEvent == UIControlEventTouchUpInside) NSLog(@"button released");
}