title: looping through all cells in UICollectionview
body: <p>I have UICollection in which there will be number of Students items and each item having switch inside it used for recording attendance. I am loop through all visible cells like this.</p>
  
  <pre><code>for(attendancecollectionViewCell* cells in [[self collectionView] visibleCells]){
  
      NSLog(@"The switch value : %c",cells.attendanceSwitchLabel.isOn);
  
  }
  </code></pre>
  
  <p>But, I wanted to loop through all the cells for attendance, not just the visible cells. </p>