I'm trying to apply round corners to an UIImageView. Although the corners are round, there are still 4 edges, which simply won't go away no matter the size of the radius. Removing the border also doesn't help.
Could this have something to do with auto layout constraints? What am I doing wrong?
Here's the code I'm applying:
self.imageViewProfilePicture.layer.cornerRadius = self.imageViewProfilePicture.frame.size.width / 2.0
self.imageViewProfilePicture.layer.borderWidth = 2.0
self.imageViewProfilePicture.layer.borderColor = UIColor.whiteColor().CGColor
self.imageViewProfilePicture.layer.masksToBounds = true
self.imageViewProfilePicture.clipsToBounds = true