引擎自带的lua_cocos2dx_cocostudio_manual.cpp文件…
static void extendScrollView(lua_State* tolua_S)
{
lua_pushstring(tolua_S, “ListView”);
lua_rawget(tolua_S, LUA_REGISTRYINDEX);
if (lua_istable(tolua_S,-1))
{
tolua_function(tolua_S, “addEventListenerScrollView”, tolua_Cocos2dx_ScrollView_addEventListenerScrollView00);
}
lua_pop(tolua_S, 1);
}
里面的"ListView"请改成"ScrollView"