if Duplicate protocol definition of 'UIGestureRecognizerDelegate' is ignored how can I define targets

后端 未结 1 382
醉酒成梦
醉酒成梦 2021-01-21 20:00

UPDATE 2

The question in its current form has been answered and accepted even though a problem remains viz. the code now compiles with 0 warnings bu

相关标签:
1条回答
  • 2021-01-21 20:44

    UIGestureRecognizerDelegate is declared by UIKit. You can't create your own protocol named UIGestureRecognizerDelegate; it is a conflicting declaration.

    By convention, classes and protocols prefixed with UI are declared by UIKit and you should not declare your own objects and classes with this prefix. Use something like MyGestureRecognizerDelegate

    0 讨论(0)
提交回复
热议问题