You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HeroBaseDialogView.lua
function HeroBaseDialogView:reloadData( )
self:initData()
self.m_leftLayer:setData(self.m_player)
self:loadHeroShow()
-- self.m_leftLayer:reloadData()
end
The text was updated successfully, but these errors were encountered:
问题如下:
我用lua创建一个c++的对象 如LuaTableView,当使用该对象的方法reloadData()时,偶尔会调到其他lua类的同名方法,导致预想不到的错误。
经过测试,在手机出现概率非常高,在电脑上概率较低。我的cocos2dx 是 2.2.1的。
代码片段:
TableList.lua:
local tableview = LuaTableView:createWithHandler(self.handler, CCSizeMake(self.contentSize.width,self.contentSize.height), nil, colCount, loadInterval)
tableview:reloadData()
HeroBaseDialogView.lua
function HeroBaseDialogView:reloadData( )
self:initData()
self.m_leftLayer:setData(self.m_player)
self:loadHeroShow()
-- self.m_leftLayer:reloadData()
end
The text was updated successfully, but these errors were encountered: