Swift iOS - Detect Touch Drag Enter UIView from outside UIView -
how event touch, anywhere on screen, draged , enters specific uiview?
how can it, in simple way, in swift ios?
an example of want achieve shown below:
override method of controller
override func touchesmoved(touches: set<uitouch>, withevent event: uievent?) { }
than check if touch inside of views rect using function cgrectcontainspoint
Comments
Post a Comment