摘要:
一般如果只是 alloc init 那么 用new 是一样的SomeObject*myObject =[[SomeObject alloc] init];SomeObject*myObject =[SomeObjectnew];即上述两种情况是一样的!#import "InitAllocNewTest.h"@implementation InitAllocNewTest+(id)alloc{ NSLog(@"Allocating..."); return [super alloc];}-(id)init{ NSLog(@"Initializin 阅读全文
posted @ 2013-09-17 10:17
cocoajin
阅读(529)
评论(0)
推荐(0)
浙公网安备 33010602011771号