I am using the below code...What AutoLayout Constraints need
_imgViewProfile.layer.cornerRadius = _imgViewProfile.frame.size.height/2;
[_imgViewProfile setClipsToBounds:YES];
I am using the below code...What AutoLayout Constraints need
_imgViewProfile.layer.cornerRadius = _imgViewProfile.frame.size.height/2;
[_imgViewProfile setClipsToBounds:YES];
This may help you.
UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 100, 100)];
imageView.image = [UIImage imageNamed:@"image3"];
imageView.layer.cornerRadius = imageView.frame.size.width / 2.0 ;
imageView.layer.masksToBounds = true;
Please follow these links
How to make a circular UIView
How To Create Circular Profile Picture and Rounded Corner Image
Many examples shared with good detail level. In nutshell you would be doing this:
imageView.layer.cornerRadius = imageView.frame.size.width / 2;
imageView.clipsToBounds = YES;