求助一个问题,3.0alpha1用不了cocos

开发环境 vs2013

#include “HelloWorldScene.h”
#include “cocostudio/CocoStudio.h”
#include “cocos-ext.h”
using namespace cocostudio;
//添加命名空间
USING_NS_CC;
USING_NS_CC_EXT;
Scene* HelloWorld::createScene()
{
// ‘scene’ is an autorelease object
auto scene = Scene::create();

// 'layer' is an autorelease object
auto layer = HelloWorld::create();

// add layer as a child to scene
scene->addChild(layer);

// return the scene
return scene;

}

// on “init” you need to initialize your instance
bool HelloWorld::init()
{
//////////////////////////////
// 1. super init first
if ( !Layer::init() )
{
return false;
}

Size visibleSize = Director::getInstance()->getVisibleSize();
Point origin = Director::getInstance()->getVisibleOrigin();

UILayer * uiLayer = UILayer::create();     //老是说UILayer不存在的类型。
auto myLayout = cocostudio::GUIReader::shareReader()->widgetFromJsonFile("testUI.ExportJson")); //alpha1中使用  
uiLayer->addWidget(myLayout);
this->addChild(uiLayer);

return true;

}

void HelloWorld::menuCloseCallback(Object* pSender)
{
Director::getInstance()->end();

#if (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
exit(0);
#endif
}

UILayer * uiLayer = UILayer::create();     //老是说UILayer不存在的类型。

请看我写的博客 也是关于 UI 控件的问题,不知是否对你有帮助。

也是在程序中添加
在新建的工程里添加:
UILayer* layer = UILayer::create();
UIButton* uiButton = UIButton::create();
的问题。

http://blog.csdn.net/chinahaerbin/article/details/17092829

使用CocoStudio创建UI并载入到程序中]
http://blog.csdn.net/chinahaerbin/article/details/17339877

谢谢,我已经解决了。
是没有包含头文件

#include “CocosGUI.h”

gui::UILayer 就可以了