Home > front end >  UIImage with the corner round itself
UIImage with the corner round itself

Time:12-08

Due to the auto layout feature, I tried to use UIImage corner radius instead of UIImageView. The corner radius was too thin when the photo was too large, such as 4k x 4k, but when the photo was small, such as 500 x 500, the corner radius was too large. No matter what size the photo is, I want the corner radius to be 25. Do you have any suggestions?

I tried the following code from this, but it does not solve my problem.: enter image description here

and this 500x500 image (original source: enter image description here

We get this output:

enter image description here

  • Related