The iOS app implements a UI that scrolls vertically like a Twitter timeline.
When you attempt to scroll vertically with a vertical swipe, if you swipe the area of the button on the UI, the button tap event will fire without scrolling.(Twitter, for example, when I try to scroll, I press a button such as a retweet.)
Is there a good way to distinguish between swipes and taps, and in the case of swipes, not igniting button events?
·Swift3
·iOS 8.0 or higher
In which action do you take the tap event?
Perhaps this action means that the button is being processed at the TouchDown event of the button.
I think it will be solved if you try to process it with the TouchUpInside event.
What do you think?
If you don't mind, I might be able to give you a more detailed answer if you show me the code on the button.
© 2024 OneMinuteCode. All rights reserved.