title: how to make dynamic size for the uicollection view cell in iOS?
body: <p>I am using uicollection view to display the images in grid view format.I am able to display the cells but the height &amp; width is not increased for iPad it only display as the small blocks.Please tell me how can i make it dynamic.</p>
  <p>[![enter image description here][1]][1]</p>
  <p>I have used following code for make it dynamic.</p>
  <h1>pragma mark Collection view layout things</h1>
  <pre><code>- (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumInteritemSpacingForSectionAtIndex:(NSInteger)section {
      if (collectionView==self.album_collection_view) {
          return 2.0;
      }
      else
          return 2.0;
  }
  
  - (CGFloat)collectionView:(UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout minimumLineSpacingForSectionAtIndex:(NSInteger)section {
      if (collectionView==self.album_collection_view) {
          return 2.0;
      }
      else
          return 2.0;
  }
  // Layout: Set Edges
  - (UIEdgeInsets)collectionView:
  (UICollectionView *)collectionView layout:(UICollectionViewLayout*)collectionViewLayout insetForSectionAtIndex:(NSInteger)section {
      // return UIEdgeInsetsMake(0,8,0,8);  // top, left, bottom, right
      if (collectionView==self.album_collection_view) {
          return UIEdgeInsetsMake(5,0,0,0);
      }// top, left, bottom, right
      else
          return  UIEdgeInsetsMake(5,0,0,0);
      
  }
  </code></pre>
  <p>Please tell me how can i resolve this issue?</p>