第二個建立UIImageView 的方式為使用 UIImageView(image:) ,在初始化時直接給一個 ... 設置成圖片,利用UIButton 的方法 setImage() ,設置一個UIImage 給它即可。
確定! 回上一頁