2 u010748896 u010748896 于 2013.09.07 19:13 提问

ios7上COCOS2D-x的问题 CCMenuItemFont不显示了

CCMenuItemFont做了按钮 在IOS6上均无问题 ,在iOS7上无法显示,打印坐标也正常,求大神帮忙,小弟着急上线,万分感谢

具体代码如下

void UserView::onEnterTransitionDidFinish()

{

CCMenuItemFont::setFontSize(45);



start = CCMenuItemFont::create(\\\"Start\\\",this,menu_selector(UserView::replaceGameViewScence));

start->setColor(ccc3(0, 0, 0));



top = CCMenuItemFont::create(\\\"Top\\\",this,menu_selector(UserView::replaceTopViewScene));

top->setColor(ccc3(0, 0, 0));

   explain = CCMenuItemFont::create(\\\"Explain\\\",this,menu_selector(UserView::replaceExplainViewScence));

explain->setColor(ccc3(0, 0, 0));

   developer = CCMenuItemFont::create(\\\"Developer\\\",this,menu_selector(UserView::replaceDevieloperViewScence));

developer->setColor(ccc3(0, 0, 0));




start->setScale(2.0f);

top->setScale(2.0f);

explain->setScale(2.0f);

developer->setScale(2.0f);



CCMenu * menu = CCMenu::create(start,top,explain,developer,NULL);

menu->setPosition(ointZero);

start->setPosition(ccp(winSize.width/4,winSize.height-100));

top->setPosition(ccp(winSize.width/4,winSize.height-200));

explain->setPosition(ccp(winSize.width/4,winSize.height-300));

developer->setPosition(ccp(winSize.width/4,winSize.height-400));

CCLog(\\\"%f*%f\\\",start->getPositionX(),start->getPositionY());


this->addChild(menu,20);

menu->setTag(1002);

}

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!