ios alloc 、 init 、 new

107 阅读1分钟

ios 构造方法, 工厂模式 +(id)init { return (id)self; }

+(id)new { return [calloc...] }

new == [alloc init]