Documentation of UIControl Class:
What is the difference between UIControlEventTouchDragInside, UIControlEventTouchDragEnter, UIControlEventTouchUpInside? All seem to be the same.
Documentation of UIControl Class:
What is the difference between UIControlEventTouchDragInside, UIControlEventTouchDragEnter, UIControlEventTouchUpInside? All seem to be the same.
Copyright © 2021 Jogjafile Inc.
No, those all are not same. Though they are all coming from
UIControl.Apple made this things available inside a
structfor swift and for Objective-C its available inside anenum. Both of this are insideUIControlEvents. Following are thestruct&enumwhich you may look.Now coming to the theoretical explanation which apple does for this things separately. BTW I am not explaining all the events but taking your requirements only.
UIControlEventTouchDragEnter- An event where a finger is dragged into the bounds of the control.(I hope you know the difference betweenframesandbounds)UIControlEventTouchDragInside- An event where a finger is dragged inside the bounds of the control.UIControlEventTouchUpInside- A touch-up event in the control where the finger is inside the bounds of the control.This are all available from iOS 2.0 onwards. See the difference between
TouchUpandTouchDragalso which will help you to get a clear idea about this things.Thanks, Hope this helped.