What I want: Touch a button and a view is added right where the touch is. Without having to lift the finger the touches began/moved automatically begins working on the UIView. So without lifting the finger, I have touched the button and can drag the new view around.
What I don’t know how to do:
Stop the touch events on the button and immediately send the touch events to the new view that is directly under the finger.
As @Daniel suggested ditch the button and just use a
UIView, but I believe you may need to have aUIPanGestureRecognizerin place to get your dragging.You could set a flag when a new
UIViewis created and then forward any gesture events to that view – only while the user still has their finger down from the initial touch.After the user has lifted their finger the new view can just deal with gestures by itself by adding a
UIPanGestureRecognizerto it.