Commit 6eb90b2
committed
Assert recognizers not already added
From iOS9 adding a gesture recognizer that is already associated with a view is an error and no longer associates it with the second view - it leaves it on the first.
See http://forum.cocos2d-objc.org/t/onenter-call-order-issue/17718/1 for circumstances in which this can (relatively easily) happen due to user code.
Assert prevents the problem and indicates a possible path to look at to fix it.1 parent 527f906 commit 6eb90b2
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
763 | 763 | | |
764 | 764 | | |
765 | 765 | | |
| 766 | + | |
| 767 | + | |
766 | 768 | | |
767 | 769 | | |
768 | 770 | | |
| |||
0 commit comments