- 本帖最后由 Rocky 于 2012-10-17 17:47 编辑 *
function A:
CCProgressFromTo* p = CCProgressFromTo::create(10, 100, 0);
CCProgressTimer* m_counter = CCProgressTimer::create(m_bkgrnd);
CCSize sz = getContentSize();
m_counter->setPosition(ccp(sz.width/2, sz.height/2));
m_counter->setType(kCCProgressTimerTypeRadial);
m_counter->setReverseProgress(true);
function B:
CCAssert(m_counter != NULL, "counter is NULL");
CCLOG("The counters running actions number = %d", m_counter->numberOfRunningActions());//访问出错
m_counter->stopAllActions();//访问出错
请大家解释一下~该如何处理