まずはソースコードによる設定方法
- UIImageViewのプロパティ「clipsToBounds」にYESを設定する
- UIImageViewのプロパティ「layer」のプロパティ「cornerRadius 」に角丸の半径を設定する
次にストーリーボードを使った設定方法
- UIImageViewを選択して「Identity inspector」のメニューを表示する
- 「User Defined Runtime Attributes」にて「clipsToBounds」と「layer.cornerRadius」を追加して設定する
