Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在创建一个 CCMenuItemImage 的子类,它在触摸开始而不是结束时执行它的方法。我尝试在 selected() 方法中运行 activate() ,该方法有效,但在触摸结束时再次按预期执行。我该怎么办?请具体。谢谢。
MenuItemImage->setEnable(true);//active MenuItemImage->setEnable(false);//disactive