2010-06-29 44 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