title: Multiple UICollectionView in one controller
body: <p>I have a view set up with two UICollectionViews. Each of these views has an array backing it with different sizes. collection1 is backed by array1, and collection2 is backed by array2. The problem is, what ever number is returned for collection1 from numberOfItemsInSection is being applied to both collection views.</p>
  
  <p>For instance, if array1 is size 4 and array2 is size 5, both collections will show 4 elements. If array1 is size 5 and array2 is size 4, when I scroll collection2 all the way it calls cellForItemAtIndexPath with an itemIndex of 5 for collection2 and I get an NSRangeException.</p>
  
  <p>How can I make each collectionView use it's own size?</p>
  
  <pre><code>- (NSInteger)collectionView:(UICollectionView *)view numberOfItemsInSection:(NSInteger)section;
  {
      if(view == self.colleciton1){
          return self.array1.count;
      } else if (view == self.collection2){
          return self.array2.count;
      }
  
      return 0;
  }
  
  - (UICollectionViewCell *)collectionView:(UICollectionView *)cv cellForItemAtIndexPath:(NSIndexPath *)indexPath;
  {
      if(cv == self.collection1){
          CharacterCell *cell = [cv dequeueReusableCellWithReuseIdentifier:FIRST_CELL_IDENTIFIER forIndexPath:indexPath];
          cell.label.text = self.array1[indexPath.item];
          return cell;
      } else if (cv == self.collection2){
          EpisodeCell *cell = [cv dequeueReusableCellWithReuseIdentifier:SECOND_CELL_IDENTIFIER forIndexPath:indexPath];
          cell.label.text = self.array2[indexPath.item];
          return cell;
      }
  
      return nil;
  }
  </code></pre>
  
  <p>I've included a git repo with a project illustrating the problem.</p>
  
  <p>git@github.com:civatrix/MultipleCollectionViews.git</p>