I have a UIImageView
on each of my UITableView
cells, that display a remote image (using SDWebImage
). I\'ve done some QuartzCore
Set the height & width of the of the UIImageView to be the same e.g.:Height=60
& Width = 60
, then the cornerRadius
should be exactly the half.I have kept it 30 in my case.It worked for me.
self.imageView.layer.cornerRadius = 30;
self.imageView.layer.borderWidth = 3;
self.imageView.layer.borderColor = [UIColor whiteColor].CGColor;
self.imageView.layer.masksToBounds = YES;