I am writing an iPhone application that has a piano-like interface. The user has several large buttons with no spaces between them. At the moment, I created IBActions in Interface Builder with the right mouse button, dragging the buttons into the corresponding controller interface file. This creates a method:
-(IBAction) buttonTouchDown: (id) sender
In the body of this function, I have included code that responds to this action.
This works when I press a button, but when I drag my finger over several buttons, only the first is activated. When I drag my finger over the buttons, I need the first one to activate while my finger is above it. Then, when my finger leaves the button and enters the second button, I need the second to activate, and the first to deactivate.
Any advice would be greatly appreciated!
source
share