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; }
CAStepper* CAStepper::create() { CAStepper* page = new CAStepper(); if (page && page->init()) { page->autorelease(); return page; } CC_SAFE_DELETE(page); return NULL; }