翻了几篇说到getChildByName就结束了,可是取出来的如何使用?
比如最基础cocostudio上写着叫文本的,对应到代码里是哪个控件?
点在线帮助里看到个叫Label,但是Label的方法似乎都没法使用
诸如此类,所有控件都不会用
有什么好用的说明文档吗?
补:
比如
local textProf = tolua.cast(rootNode:getChildByName(“TextProf”), “Label”)
textProf:setText(“test”)
报错
cocos2d: LUA ERROR: :28: attempt to call method ‘setText’ (a nil value)
