Change UICollectionView size without viewDidLayoutSubviews
<p>I have a <code>CollectionView</code>(Vertical) inside of a <code>ScrollView</code> to make it scrollable in both directions.</p>

<p>The user need to select the seat in the room, and the room can have any number of columns and rows, I need to put in order the seats</p>

<p>If I put a value ( 800 for example) of width on the collection view on <code>viewDidLayoutSubviews</code> it works</p>

<pre><code>- (void)viewDidLayoutSubviews {
self.collectionView.frame = CGRectMake(0, 0, 800, self.collectionView.frame.size.height);
self.scrollView.contentSize = self.collectionView.frame.size;

}
</code></pre>

<p>The problem is, that I load the seats in a Async task, and If I use </p>

<pre><code>self.collectionView.frame = CGRectMake(0, 0, 113*columns, 113*rows);
self.scrollView.contentSize = self.collectionView.frame.size;
</code></pre>

<p>after load the seats It doesnt work. </p>

<p>I cant put the size in <code>viewDidLayoutSubviews</code> because I dont know still how many seats !</p>

<p>How I can do it after load the data?</p>