title: table cell height issue iOS?
body: <p>I have custom table view.I have added 4 views in that </p>
  
  <p>1.ImageView 
  2.Three labels </p>
  
  <p><a href="https://i.stack.imgur.com/ma3CW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ma3CW.png" alt="enter image description here"></a></p>
  
  <p>Now I want that image should increase in size for multiple devices.For that i have given it below constraints.Proptional height is <strong>176:339</strong></p>
  
  <p><a href="https://i.stack.imgur.com/nfQc5.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nfQc5.png" alt="enter image description here"></a></p>
  
  <p>Now in order to increase the height of the image i have increase height of table i used below code.</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  
      if(!self.customCell)
      {
          self.customCell = [self.tableview dequeueReusableCellWithIdentifier:@"tableCell"];
      }
      CGFloat height;
      height=self.customCell.img_main.frame.size.height;
      height=height+self.customCell.label_one.frame.size.height;
      height=height+self.customCell.label_two.frame.size.height;
      height=height+self.customCell.label_three.frame.size.height;
      height=height+self.customCell.dev_name.frame.size.height;
      NSLog(@"height is %f",self.customCell.img_main.frame.size.height);
  
      return height;
  }
  </code></pre>
  
  <p>The heigh of image is always 176 which i set in interface builder for 4 inch screen.</p>
  
  <p>Why the height of both images &amp; table view cell is not increasing ?</p>