ios alloc 、 init 、 new CarlosL 2023-07-19 107 阅读1分钟 ios 构造方法, 工厂模式 +(id)init { return (id)self; } +(id)new { return [calloc...] } new == [alloc init]