OC之new

OC之new

 1、OC提供了alloc和new两个类方法,new方法实质上等于 [[xxx alloc] init]。 alloc方法会自动将分配内存设置为0。

  

原文地址:https://www.cnblogs.com/tekkaman/p/3041771.html