请问1.4.0.0中listview获取一项中控件的方法

1、请问,我用cocostudio1.4.0.0创建了一个列表容器名字为ListView_2,然后在此节点下创建了一个button名字为Button_5解析代码为如下:

auto uiLayer1 = cocostudio::GUIReader::getInstance()->widgetFromJsonFile(“14/NewUi_1.json”);
uiLayer1->setPosition(Point(450,100));
addChild(uiLayer1);
auto listView = (ListView)(uiLayer1->getChildByName(“ListView_2”));

auto button_list1 = (Button*)(listView->getItem(0)->getChildByName(“Button_5”))

2、可是从listview当个项中根据名字获取不到butto也就是 button_list1为空,请问这是什么原因呢。

你好,如果你使用的引擎是3.0版本,推荐使用seekWidgetByTag / seekWidgetByName

好的,谢谢,seekWidgetByTag / seekWidgetByName 与以前的getChildByTag /getChildByName,有神区别吗