2D arrays using NSMutableArray

后端 未结 8 852
夕颜
夕颜 2020-11-29 21:41

I need to create a mutable two-dimensional array in Objective-C.

For example I have:

NSMutableArray *sections;
NSMutableArray *rows;
<
8条回答
  •  广开言路
    2020-11-29 22:06

    FYI: Jack's code needs a bunch of work before it works. Among other issues, the autorelease can cause the data to get released before you access it and his usage calls the class method arrayWithSections:rows: when it is actually defined as sectionArrayWithSections:rows:

    I may try to post actual working code later if I get a chance.

提交回复
热议问题