想要在圆圈中显示图像是可能的以及如何 [英] Want to display image in the circle it is possible and how

查看:35
本文介绍了想要在圆圈中显示图像是可能的以及如何的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在圆圈中而不是在矩形中显示图像,所有这些都将显示在 tableview 中

hi i want to display image in the circle not in the rectangle and all this will display in the tableview

推荐答案

你必须#import 并添加一个cornerRadius到你的imageView[yourImageView.layer setCornerRadius:yourImageView.frame.size.width/2] 也许你必须添加 [yourImageView setClipsToBounds:YES],但我不确定这一点.

You have to #import <QuartzCore/QuartzCore.h> and add a cornerRadius to your imageView [yourImageView.layer setCornerRadius:yourImageView.frame.size.width/2] maybe you have to add [yourImageView setClipsToBounds:YES], but i am not sure about this.

这篇关于想要在圆圈中显示图像是可能的以及如何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆