當元件從storyboard 或xib 生成時,將執行awakeFromNib,我們在裡面將圖片的contentMode 設為scaleAspectFit。 class ImageButton: UIButton { override ...
確定! 回上一頁