想使用它的缩放setZoomScale(m_fMaxScale,true);
但是一直提示有问题,谁知道什么情况??
error::::Assertion failed: (dynamic_cast<CCActionTweenDelegate*>(pTarget)), function startWithTarget, file /Volumes/Code/libs/cocos2dx/actions/CCActionTween.cpp, line 64.
void THWScrollView::setZoomScaleInDuration(float s, float dt)
{
if (dt > 0)
{
if (m_pContainer->getScale() != s)
{
CCActionTween *scaleAction;
scaleAction = CCActionTween::create(dt, “zoomScale”, m_pContainer->getScale(), s);
this->runAction(scaleAction);//这里出错
}
}
else
{
this->setZoomScale(s);
}
}