示例#1
0
CAStepper* CAStepper::create(const CAStepperOrientation& type)
{
    CAStepper* page = new CAStepper(type);
    
    if (page && page->init())
    {
        page->autorelease();
        return page;
    }
    
    CC_SAFE_DELETE(page);
    return NULL;
}
示例#2
0
CAStepper* CAStepper::create()
{
    CAStepper* page = new CAStepper();
    
    if (page && page->init())
    {
        page->autorelease();
        return page;
    }
    
    CC_SAFE_DELETE(page);
    return NULL;
}