title: How to prevent table cell border to be cut by cell image?
body: <p>i have a table view and i want to add image on it by using the following code,</p>
  
  <p>first by overriding <code>layoutSubviews</code></p>
  
  <pre><code>- (void)layoutSubviews{
      [super layoutSubviews];
  self.imageView.frame = CGRectMake(15, 5, 50, 45);
  self.imageView.layer.cornerRadius = 5.0f;
  self.imageView.layer.masksToBounds = YES;
  self.imageView.contentMode = UIViewContentModeScaleAspectFill;
  }
  </code></pre>
  
  <p>and then using it in the <code>-(MyTableViewCell *)tableView:(UITableView *)tableView 
  cellForRowAtIndexPath:(NSIndexPath *)indexPath</code></p>
  
  <pre><code> NSString *imageUrlString = [userInfoResponse[indexPath.row - beginIndex] objectForKey:@"image_url"];
          NSURL * imageURL = [NSURL URLWithString:imageUrlString];
          if ( [[NSUserDefaults standardUserDefaults] objectForKey:imageUrlString] == nil ) {
              [[NSUserDefaults standardUserDefaults] setObject:[NSData dataWithContentsOfURL:imageURL] forKey:imageUrlString];
          }
          UIImage * img = [UIImage imageWithData:[[NSUserDefaults standardUserDefaults] objectForKey:imageUrlString]];
          cell.imageView.image = img;
  }
  </code></pre>
  
  <p>and in this line i added</p>
  
  <pre><code>- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath {
  return 55.0;
  }
  </code></pre>
  
  <p>it works fine with this little problem (see attached image). I don't want the cell border line to be interrupted by the image. </p>
  
  <p><img src="https://i.stack.imgur.com/mUcV6.png" alt="enter image description here"></p>
  
  <p>I tried playing on codes but it wont help. Anyone knows the answer? please help. Thanks</p>
  
  <p>NOTE: It works well with iOS 6, this screenshot is on iOS 7. Can it be a new settings for iOS 7 <code>UITableView</code>?</p>