title: Using NSArray to populate collectionView
body: <p>I am new to <strong>Objective-C</strong>, I have a function which accepts <strong>NSArray</strong> as a parameter now I want to store that array in a local var in my function and then populate collection view through that array, ps I'll also have to update <code>cellForItemAtIndexPath</code> delegate method in the same class.</p>
  
  <p>This is the method in the tableView's Cell class. Here I've embedded a collectionView in the cell.</p>
  
  <pre><code>-(void)initCellWithSetsArray:(NSArray *)setsArray{
  
  NSMutableArray *setArray = [NSMutableArray array];    
  }
  </code></pre>
  
  <p>This is where i am calling this method which accept the array in cellForRowAt tableView's delegate method.</p>
  
  <pre><code>-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
          [cell initCellWithSetsArray :self.setsHistoryArray];
  }
  </code></pre>
  
  <p>So i need to update the collectionView based on the array parsed in the func when called in <code>cellForRowAtIndexPath</code>. I hope you guys get the picture now.</p>