title: How to access cell property dynamically in uicollectionview in swift
body: <p>Help of UICollectionView I am using textview to display content. Collectionview contain 10 cells. I couldn't specify height of textview according to that textview's content size. I am displaying one cell at a time. In story board, textview height is 240px. But I need content view to be extend according to the content size. My code is below. But if I run,<br>
  Error receiving as : FATAL ERROR WHILE UNWRAPPING reading_access having nil value. Kindly guide me!!</p>
  
  <pre><code>// MAIN CLASS
  
  class read_page: UIViewController, UICollectionViewDataSource,UICollectionViewDelegate 
  {
  
  
  
   @IBOutlet var reading_collection_view: UICollectionView!
  
   override func viewDidLayoutSubviews() {
  
      super.viewDidLayoutSubviews()
  
  
   }
  
  
  
  func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: 
   Int) -&gt; Int {
  
      return 10  
  }
  
  func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath:     
  NSIndexPath) -&gt; UICollectionViewCell {
  
    var cell = story_collection_view.dequeueReusableCellWithReuseIdentifier("story_read", 
    forIndexPath: indexPath) as story_reading_cell
  
            cell.reading_area_txtvw.frame.size.height = 750
  
    return cell
  }
  
  // This code is working. But, from 3rd cell onwards it is working. When we compile,  
  // textview does not change. After scrolling two more cells, it is working. How to get 
  // its size from first cell onwards? How to change cell size?
  
  
  
  
  }
  </code></pre>