title: UICollectionView Vertical showing half the cell in the end
body: <p>i have collectionView. it shows cell in vertically.</p>
  
  <p>in the start the collectionView looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/WLHCB.jpg" rel="nofollow noreferrer">start of the collectionview</a>
  <a href="https://i.stack.imgur.com/pl6F6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pl6F6.jpg" alt="enter image description here"></a></p>
  
  <p>at the end it looks like this</p>
  
  <p><a href="https://i.stack.imgur.com/56XKa.jpg" rel="nofollow noreferrer">end of collectionView</a>
  <a href="https://i.stack.imgur.com/KcRCh.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KcRCh.jpg" alt="enter image description here"></a></p>
  
  <p>so it basically doesnt show up the whole cell in the end
  the code for collection class is </p>
  
  <pre><code>#import "ViewController.h"
  
  @interface ViewController ()
  @property (weak, nonatomic) IBOutlet UICollectionView *collectionView;
  
  @end
  
  @implementation ViewController
  
  - (void)viewDidLoad {
      [super viewDidLoad];
      // Do any additional setup after loading the view, typically from a nib.
  
   }
  
  - (void)didReceiveMemoryWarning {
      [super didReceiveMemoryWarning];
      // Dispose of any resources that can be recreated.
  }
  
  
  #pragma mark - CollectionView Datasource
  
  - (NSInteger)numberOfSectionsInCollectionView:(UICollectionView *)collectionView{
      return 1;
  }
  
  - (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section{
      return 9;
  }
  
  - (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
      ViewControllerCollectionViewCell *cell = [collectionView dequeueReusableCellWithReuseIdentifier:@"Cell" forIndexPath:indexPath];
  
  
  
      return cell;
  }
  @end
  </code></pre>