title: How to set a corner radius for a custom cell
body: <p><a href="https://i.stack.imgur.com/Km24l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Km24l.png" alt="enter image description here"></a></p>
  
  <p>Here is my sample output ,in that below details there are three cells ,i have set corner radius for each custom cells.but it not working correctly .The corner radius for first cell is not working ,for the second cell the top right and top left is working ,please say what to do for this </p>
  
  <pre><code>   -(void)layoutSubviews
       {
  [super layoutSubviews];
  self.backgroundColor = [UIColor clearColor];
  self.contentView.layer.cornerRadius =5;
  self.contentView.layer.masksToBounds = YES;
  
   }
  </code></pre>
  
  <p>i have applied this above code to my cell class file </p>