title: uiimageview corner radius not working in tableView cellForRowAtIndexPath
body: <p><code>UIImageView</code> corner radius not working inside <code>cellForRowAtIndexPath</code> method
   and and i am using is prototype cell.</p>
  
  <p>I also tried  <strong><code>layoutIfNeeded</code> method unfortunately doesn't work</strong>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>[cell layoutIfNeeded];
  client_image=[cell viewWithTag:3];
  
  [client_image setImageWithURL:[NSURL URLWithString:[info objectForKey:PRE_USERIMAGE]] placeholderImage:[UIImage imageNamed:PLACE_HOLDER_IMAGE]];
  
  // client_image=(UIImageView*)[TMGlobalFunction changebgLayer:client_image];
          ;
  //  [client_image layoutIfNeeded];
  client_image.layer.masksToBounds=YES;
  client_image.layer.borderColor=[UIColor whiteColor].CGColor;
  client_image.layer.cornerRadius = client_image.frame.size.height/2;
  client_image.layer.borderWidth=[TMGlobalFunction IsiPad]?4.0f:2.0f;
  </code></pre>
  
  <p><strong>This works fine when I set it manually like:</strong></p>
  
  <pre><code>client_image.layer.cornerRadius = 50; 
  </code></pre>
  
  <p><strong>But it's not working when i upgrade <em>Xcode 7 to 8</em> with below code:</strong></p>
  
  <pre><code>client_image.layer.cornerRadius = client_image.frame.size.height/2;
  </code></pre>
  
  <p>Any idea how why i am getting this wired issue?</p>
  
  <p><strong>Update:</strong> <em>it is issue in Xcode 8 when I print <code>client_image.frame.size.height</code> it's return 1000 first time. after scrolling it's return right value.</em></p>