Home how to remove white space in circle UIImageView?
Reply: 0

how to remove white space in circle UIImageView?

user556 Published in April 26, 2018, 1:45 pm

I wanted to circle my UIImageView and added this code :

profileImage.layer.cornerRadius = profileImage.frame.size.height/2
    profileImage.clipsToBounds = true

and it work perfectly, but when images are horizontal, I get this picture:

as you can see, there is white space at the bottom and top of my circle image view. but what I really wanted was a circle filled with my image! I've tried changing "content Mode" from attribute inspector, but I didn't get any answer! how can I fix this issue?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.530821 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO