// 變成圓形

 personalPhotoImageView.layer.cornerRadius = personalPhotoImageView.frame.size.width / 2

personalPhotoImageView.clipsToBounds = true

personalPhotoImageView.contentMode = .ScaleAspectFit

 

參考資料:

https://www.udemy.com/iphone-app-zh/learn/v4/overview

http://blog.csdn.net/smking/article/details/8959414

arrow
arrow
    全站熱搜

    小賢 發表在 痞客邦 留言(0) 人氣()