title: SWIFT... how to loop through UIcollectionView, and getting values from the textfield into an array
body: <p>so i have given the textfields a tag of 10 i want to loop through the cells of the collection view  and get the values of the textfield and store them into an array... here is some code.......</p>
  
  <pre><code>override func collectionView(collectionView: UICollectionView, didSelectItemAtIndexPath indexPath: NSIndexPath) {
  
      let cell1 =  collectionView.cellForItemAtIndexPath(indexPath)
  
      let textbox1 = cell1?.viewWithTag(10) as? UITextField
  
      print(indexPath.row)
  
  print(textbox1?.text)
  
  }
  </code></pre>
  
  <p>if I select the cell the right text is shown, I will eventually have a button, when clicked id want it to loop though all of the cells and store it into an array(which i can do). i need a way to loop through the cells using the index path and storing the textfield data, any help would be much appreciated </p>