[swift] UIImageのサイズを取得する方法
let mainImage = UIImage(named: "Image1") let width = self.mainImage?.size.width let height = self.mainImage?.size.height
let mainImage = UIImage(named: "Image1") let width = self.mainImage?.size.width let height = self.mainImage?.size.height