I'm writing an iPhone application which has a piano like interface. The user is presented with a number of large buttons with no spaces between them. At the moment I've created IBActions in Interface Builder by right mouse dragging the buttons into the appropriate view controller interface file. This creates a method:
-(IBAction) buttonTouchDown: (id) sender
In the body of this function I've included the code which responds to this action.
This works when I tap the button but but when I drag my finger over a number of buttons only the first one activates. When I drag my finger over the buttons I need the first one to activate while my finger is over 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!