4

I want to make complete round shape of imageview in ios for displaying profile photo of any user.

Is it possible with layer.cornerRadius property or need to find other solution?

Any help will be appreciated.

Marcelo Assis
  • 5,136
  • 3
  • 33
  • 54
Chirag Lukhi
  • 1,528
  • 17
  • 41

2 Answers2

4

yes you can use layer.cornerRadius just dont forget to add layer.masksToBounds = YES;

Vishal Kardode
  • 961
  • 2
  • 8
  • 25
1

Using QuartzCore is the best solution for you, please see this answer, it will help you.

Note: What apply on UIView will apply on UIImageView.

Community
  • 1
  • 1
Scar
  • 3,460
  • 3
  • 26
  • 51