UINumber* UINumber::numberWithStyle(NumStyle style){ UINumber* n = new UINumber; if(n && n->initWithStyle(style)){ n->autorelease(); return n; } CC_SAFE_DELETE(n); return NULL; }
/* * initWithStyle 初始化 */ UINumber* UINumber::initWithStyle(NumStyle style) { //if( (self=[super init])) { UINumber* self = UINumber::create(); self->init(style); self->autorelease(); //} return self; }