title: How to add custom imageview in tableview cell in Swift?
body: <p>What i need to do is adding circle image to cell on uitableview.How can i do that?</p>
  
  <p>I've tried some code but i doesn't work at all,here is my code:</p>
  
  <pre><code>let imageName = "person.png"
      let image = UIImage(named: imageName)
      var imageView = UIImageView(image: image!)
  
      imageView = UIImageView(frame: CGRectMake(0, 0, 100, 100))
      imageView.layer.borderWidth=1.0
      imageView.layer.masksToBounds = false
      imageView.layer.borderColor = UIColor.whiteColor().CGColor
      imageView.layer.cornerRadius = 13;
      imageView.clipsToBounds = true
  
      cell.imageView!.image = imageView
  </code></pre>
  
  <p>I got this error:</p>
  
  <blockquote>
    <p>cannot assign a value of type ‘UIImageView’ to a value of type ‘UIImage?'</p>
  </blockquote>