title: UICollection View Adjust Cell Size for Screen Size
body: <p>Currently i have a collection view which takes up most of my screen at the 3.5 inch screen size.The collection view is 51 pixels from the top and 20 pixels from the bottom of the screen.  I am using the cells with <code>UIPageControl</code> to create a paged layout, with one cell per page. When switching to the 4 inch size, using constraints i can get the collection view to expand into the new space (maintaining the 51 pixels from the top and 20 from bottom), but the cell size stays the same, so now there is a bunch of empty space at the top and bottom of the cell. I tried using constraints, but it appears you can't set them for cells. How do i expand the cell size bigger to fill the empty space on the iPhone 5?</p>
  
  <p>The collection view code is just</p>
  
  <pre><code>- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView
                cellForItemAtIndexPath:(NSIndexPath *)indexPath
  {
  MyCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
  return cell;
  
  }
  </code></pre>
  
  <p>The layout is setup in IB I want to get the layout working first before I add more</p>
  
  <p><img src="https://i.stack.imgur.com/thNmv.png" alt="iPhone 5 view. I want to fill the empty space"></p>
  
  <p><img src="https://i.stack.imgur.com/GdMPp.png" alt="iPhone 4 view"></p>