NSMutableArray addObject not working

前端 未结 2 1974
时光说笑
时光说笑 2020-11-22 01:07

I have declared an NSMutableArray *categories in my view controller .h file, and declared a property for it.

In the parser:foundCharacters:

2条回答
  •  [愿得一人]
    2020-11-22 01:41

    Initialize an empty array using

    categories = [NSMutableArray array];
    

    The array class method are autoreleased so no need to release.

提交回复
热议问题