在iPhone上用圆角绘制图像

时间:2009-08-07 11:00:26

标签: iphone

我想用圆角绘制图像。如何在iPhone上执行此操作?

3 个答案:

答案 0 :(得分:1)

答案 1 :(得分:1)

我希望这可能有所帮助:

Round the corners of an image

你所要做的就是:

#import <QuartzCore/QuartzCore.h>

//Then do this. Change "theImageView" with the name of your ImageView

theImageView.layer.cornerRadius = 12;

theImageView.layer.masksToBounds = YES;

答案 2 :(得分:0)

使用透明背景的PNG。然后在将图像的角落添加到iPhone之前简单地对其进行圆角处理。

相关问题