好吧,alloc,和init分开可以的,
rootManager = [[self alloc]init];
rootManager = [self init];
[IMRootManager<0xa11dac> init]: cannot init a class object.'
rootManager = [[self alloc]init];
rootManager = [self init];
[IMRootManager<0xa11dac> init]: cannot init a class object.'