title: UICollectionView cell size ContentView Issue
body: <p>I have a UICollectionViewCell in storyboard the cell. The cell size is 45 for first 6 cells and 50 for the last cell.</p>
  
  <p>Storyboard cell size has width = 60.</p>
  
  <p>The following issue occurs when running on iOS Simulator 4s.</p>
  
  <p><a href="https://i.stack.imgur.com/ishYX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ishYX.png" alt="enter image description here"></a></p>
  
  <p>If you see the cell at location 2,4,6 there is a red background of UICollectionView.</p>
  
  <p>I get the following in <em>layoutSubView</em> of the subclass.</p>
  
  <pre><code>Frame = {{0, 0}, {50, 60}}
  Frame = {{0, 0}, {45, 60}}
  Frame = {{0, 0}, {45, 60}}
  Frame = {{0, 0}, {45, 60}}
  Frame = {{0, 0}, {45, 60}}
  Frame = {{0, 0}, {45, 60}}
  Frame = {{0, 0}, {45, 60}}
  
  
  - (void)layoutSubviews
  {
      [super layoutSubviews];
  
      NSLog(@"Frame = %@",NSStringFromCGRect(self.bounds));
      self.contentView.frame = self.bounds;
  }
  </code></pre>
  
  <p>Also, added the resizing in awakefromnib which did not work.</p>
  
  <pre><code>-(void)awakeFromNib{
      [super awakeFromNib];
  
     self.contentView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin |UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth ;
  }
  </code></pre>
  
  <p>The above result which is printed is correct, the sizes are perfect.</p>
  
  <p>Adding the following in ViewController also did not work</p>
  
  <pre><code>-(CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section{
      return 0.0;
  }
  -(CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout *)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section{
      return 0.0;
  }
  </code></pre>
  
  <p>A  demo project is available for some time at <a href="https://www.dropbox.com/s/i03ys0s7sebokh0/Collection.zip?dl=0" rel="nofollow noreferrer">url.</a></p>
  
  <p>On further investigation I found was because of scaling simulator. The screens are with a 4s simulator. I don't know if on device it will cause any issue.</p>
  
  <p>100% => result Ok
  75%  => red background lines appear
  50%  => result Ok
  33%  => result Ok
  25%  => red background lines appear</p>
  
  <p><a href="https://i.stack.imgur.com/VVNU3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VVNU3.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/qp0Zg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/qp0Zg.png" alt="enter image description here"></a> <a href="https://i.stack.imgur.com/aFvMm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/aFvMm.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/KTOqV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KTOqV.png" alt="enter image description here"></a><a href="https://i.stack.imgur.com/TplVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TplVz.png" alt="enter image description here"></a></p>