标签:
listView2.runAction(cc.sequence(cc.delayTime(0.1),cc.callFunc(function () { listView2.jumpToBottom(); })),this);
在listViwe创建(从cocostudio中获取)完毕并添加Item之后延时调用jumpToBottom()方法!
var listView2 = ccui.helper.seekWidgetByName(this.mainscene,"ListView_2"); listView2.refreshView();
……添加Item
listView2.jumpToBottom();
在listView创建(获取)之后先调用refreshView()方法更新list,再添加Item之后调用jumpToBottom()方法!
cocos2d-js中listView的jumpToBottom()方法无效的解决方法
标签:
原文地址:http://www.cnblogs.com/jacket/p/5692739.html