Simulating mouse-over on an iPad

Hi,


in the iPad app I'm writing I have a View with a number of buttons. It's easy to create actions and outlets by dragging from the storyboard to the Swift code. The problem is that I want to emulate the normal mouse-over effect used in other devices and I can't find any suitable action. I want actions that trigger when a user drags his finger over the buttons - to show different help images for each button. But nothing happens unless the finger is touched down INSIDE the buttons - as if he wants to press it.


I find it really surprising that it's not possible to detect a finger sliding over a button - or is there a way?

Magic Piano is an example of capturing a touch/swipe to highlight and play keys as the user's finger moves across a keyboard.


In your example, you want to only highlight and not pass any other actions. The problem then is that you then have to decide if the touch is going to be forever ignored otherwise, or perhaps interpreted as a long press, etc.


3D touch might be your friend in that example, but then you restrict your target devices, so...


I'd also caution about emulating a strict desktop UI...your users may not get the point, and rightly so.

Simulating mouse-over on an iPad
 
 
Q