Answer the question
In order to leave comments, you need to log in
When adding a gesture (addGestureRecognizer) to a view in the UIView derived class, Xcode throws an error. What's wrong?
I want to implement the delegate pattern by passing a notification from the view to the controller that the UITapGestureRecognizer has worked.
When adding a gesture (addGestureRecognizer) to a view in the UIView descendant class, Xcode gives an error:
Instance member 'addGestureRecognizer' cannot be used on type 'GesterView'
Moreover, if you add a gesture in the controller, there is no error, everything is ok.
Thanks in advance for any help!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question