-
Notifications
You must be signed in to change notification settings - Fork 26
Home
Nevyn Bengtsson edited this page Mar 30, 2016
·
1 revision
Q: I've registered an image view a DragSource, yet I can't start drags from it! If I break in the gesture recognizer, the view seems to be nil even though I know I'm dragging from the image.
A: Gesture recognizers only work on views that have userInteractionEnabled
set to YES
. UIImageView
sets this to NO
! If you manually set it to YES
in your xib or in code, you will be able to drag from it. (I make this mistake all the time).