IOS NSArray 小计

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


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

   
  [comment1 release];
  [comment2 release];
  [comment3 release];

posted @ 2013-04-30 17:48  javawebsoa  Views(108)  Comments(0Edit  收藏  举报