I have a button, and I'd like to call a function when the user pushes it then call a different function when he releases it.
Right now I'm using this to create the button:
[ScanButton addTarget:self action:@selector(scanButtonPressed)
to call scanButtonPressed. As of now scanButtonPressed is only called upon release. How do I change this?
How about by trying a control event other than
This contains all of the different events you can pass to a button UIControl Class Reference. Try looking at these; both UIControlEventTouchUpInside and UIControlEventTouchDown will work.