gpt4 book ai didi

objective-c - 图像的圆角

转载 作者:太空狗 更新时间:2023-10-30 03:39:52 27 4
gpt4 key购买 nike

有没有一种方法可以使我放置在 ImageView 中的图像的角变圆?

最佳答案

theImageView.layer.cornerRadius = 12;

可能还需要

theImageView.layer.masksToBounds = YES;

关于objective-c - 图像的圆角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3142446/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com