When I use the
self.isTouchEnabled = YES
in Cocos2d v2.0 for the layer could be touched,the Xcode give me a tip:
setIsTouchEnabled: is deprecated
Now, I just want to know alternative method for isTouchEnabled.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here is new code:
Just wondering why genius people(Cocos2d team) doing this kind of silly change!
But this one is the right call to setup touch in Cocos2d 2.x and above !!!