今天尝试cocostudio做pageview的效果然后就爱那个json文件加到程序中
如下:
_uiLayer = BaseLayer::create();
addChild(_uiLayer);
_widget = dynamic_cast<Layout*>(cocostudio::GUIReader::getInstance()->widgetFromJsonFile(“pageview2_1/pageview2_1.json”));
_uiLayer->addChild(_widget);
画面为什么会一闪而过呢