// 變成圓形
personalPhotoImageView.layer.cornerRadius = personalPhotoImageView.frame.size.width / 2
personalPhotoImageView.clipsToBounds = true
personalPhotoImageView.contentMode = .ScaleAspectFit
參考資料:
全站熱搜
// 變成圓形
personalPhotoImageView.layer.cornerRadius = personalPhotoImageView.frame.size.width / 2
personalPhotoImageView.clipsToBounds = true
personalPhotoImageView.contentMode = .ScaleAspectFit
參考資料:
留言列表