0

How can a CCLayer subclass be added to a CCMenu? I have a CCLayer subclass that's like a switch control and I'd like to include in a CCMenu.

SundayMonday
  • 19,147
  • 29
  • 100
  • 154

1 Answers1

1

CCMenu manages subclasses of CCMenuItem. You can try inherit your switch from CCMenuItem and override it's activate method.

Morion
  • 10,495
  • 1
  • 24
  • 33