2010-06-29 77 views

回答

18
theImageView.layer.cornerRadius = 12; 

可能还需要

theImageView.layer.masksToBounds = YES; 
+0

这似乎并没有工作。仍在尝试寻找解决方案! – TheLearner 2010-07-06 08:38:11

+0

这对我有效。你可以添加一些更多的细节或关于你如何使用它的代码片段?图像视图比图像大吗? – drawnonward 2010-07-06 16:04:09

+2

当我#import 时适用于我。 – 2011-02-10 14:00:35