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.
是的,您可以使用layer.cornerRadius
只是不要忘记添加layer.masksToBounds = YES;
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
.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.