CCScale9Sprite* pBGPicFrame = CCScale9Sprite::create((g_ImgPath + "23.png").c_str()); CC_ERROR(pBGPicFrame, "【CActiveSetInfoLayer::ShowRight】pBGPicFrame is null !"); pBGPicFrame->setContentSize(CCSizeMake(280, 779)); pBGPicFrame->setAnchorPoint(ccp(0, 0)); pBGPicFrame->setPosition(ccp(360, 58)); this->addChild(pBGPicFrame);
原文:http://www.cnblogs.com/newlist/p/3533318.html