CC_BREAK_IF(! CCLayer::init()); //參數(shù)就不說(shuō)了,看一下你的資源文件就明白了 CCControlSwitch * controlSwitch = CCControlSwitch::create( CCSprite::create("extensions/switch-mask.png"), CCSprite::create("extensions/switch-on.png"),
www.dbjr.com.cn/article/550...htm 2025-6-7