Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you want to do this using arrays, you can intialize your <code>sections</code> array, then add a rows array as follows:</p> <pre><code>NSMutableArray *sections = [[NSMutableArray alloc] init]; NSMutableArray *rows = [[NSMutableArray alloc] init]; //Add row objects here //Add your rows array to the sections array [sections addObject:rows]; </code></pre> <p>If you want to add this rows object at a certain index, use the following:</p> <pre><code>//Insert your rows array at index i [sections insertObject:rows atIndex:i]; </code></pre> <p>You can then modify this rows array by retrieving the array:</p> <pre><code>//Retrieve pointer to rows array at index i NSMutableArray *rows = [sections objectAtIndex:i] //modify rows array here </code></pre> <p>You could always create your own class called <code>Section</code>, which has an <code>NSMutableArray</code> member called <code>rows</code>; then you store your rows inside this array, and store the <code>Section</code> objects in an array:</p> <pre><code>@interface Section : NSObject { NSMutableArray *rows; } </code></pre> <p>Then you simply create <code>Section</code> items, and you can create methods inside your class to add/remove row items. Then you package all the <code>Sections</code> items up inside another array:</p> <pre><code>Section *aSection = [[Section alloc] init]; //add any rows to your Section instance here NSMutableArray *sections = [[NSMutableArray alloc] init]; [sections addObject:aSection]; </code></pre> <p>This becomes more useful if you want to add more properties for each <code>Section</code> instance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload