ipercent=ipercent+10;
scrollView_map->scrollToPercentVertical(ipercent,5,true);用了这个方法没有反应。
刚新建出来就调用时无效的,延迟一点再调用
好的,我试试。
试完求反馈。
另不是刚建完会出错。
而是刚更新了ScrollView的大小之后再调这类接口会失败。
scheduleOnce(schedule_selector(Battle::BeginRunAction),1.0);
这样能用
ipercent=ipercent+10;
scrollView_map->scrollToPercentVertical(ipercent,5,true);用了这个方法没有反应。
刚新建出来就调用时无效的,延迟一点再调用
好的,我试试。
试完求反馈。
另不是刚建完会出错。
而是刚更新了ScrollView的大小之后再调这类接口会失败。
scheduleOnce(schedule_selector(Battle::BeginRunAction),1.0);
这样能用