-2

I am using the below code...What AutoLayout Constraints need

_imgViewProfile.layer.cornerRadius = _imgViewProfile.frame.size.height/2;
    [_imgViewProfile setClipsToBounds:YES];
Gurjinder Singh
  • 9,221
  • 1
  • 66
  • 58

2 Answers2

2

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;
technerd
  • 14,144
  • 10
  • 61
  • 92
2

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;
Community
  • 1
  • 1
Aamir
  • 16,329
  • 10
  • 59
  • 65