IOS NSArray 小计

来源:互联网 发布:金山软件 雪球 编辑:程序博客网 时间:2024/05/16 03:16

NSArray 会自动对对象retain,记得对象要释放。


NSArray  *myCommentArray = [[NSArray alloc] initWithObjects:comment1,comment2,comment3, nil];

   
  [comment1 release];
  [comment2 release];
  [comment3 release];
原创粉丝点击