有没有一种方法可以使我放置在 ImageView 中的图像的角变圆?
最佳答案
theImageView.layer.cornerRadius = 12;
可能还需要
theImageView.layer.masksToBounds = YES;
关于objective-c - 图像的圆角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3142446/
有没有一种方法可以使我放置在 ImageView 中的图像的角变圆?
最佳答案
theImageView.layer.cornerRadius = 12;
可能还需要
theImageView.layer.masksToBounds = YES;
关于objective-c - 图像的圆角,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3142446/
相关文章:
objective-c - upSideDown iPhone 方向在 iOS 6 中不起作用?
iPhone 6 上的 IOS 应用程序 'The application could not be verified'
objective-c - 在 Xcode 重构时忽略 Pod?
iphone - 在 iPhone 中使用 UIPanGesture 旋转 UIView 的框架增加减少
iphone - 如何检查当前坐标是否在其他坐标的半径范围内
iphone - 配置文件错误(启动远程程序时出错 : failed to get the task for process XXX. )