title: How to get the calculated size of subviews in UITableViewCell or UICollectionViewCell
body: <p>I am trying to add gradient layer to <code>UILabel</code> in a custom <code>UITableViewCell</code> (or collectionViewCell). I set some constraints to <code>UILabel</code> in interface builder so it gets resized according to the content. But I don't know how to get the correct frame size of subviews of cells.</p>
  
  <p>I tried <code>layoutSubviews</code> but it is called multiple times, twice in my case. So it adds two gradient layers, first one for not calculated frame, one for calculated frame.</p>
  
  <p>I tried <code>cellForItemAtIndexPath</code> for both <code>UITableView</code> and <code>UICollectionView</code>. It doesn't work either.</p>
  
  <p>How, or when do I get the correct frame size of subviews in <code>UITableViewCell</code> or <code>UICollectionView</code>?</p>