You need to instantiate imageView before setting the frame.
e.g.
self.imageView = UIImageView(image: UIImage(named: "image"))
solved Why am I receiving a nil value in this imageview? [closed]
You need to instantiate imageView before setting the frame.
e.g.
self.imageView = UIImageView(image: UIImage(named: "image"))
solved Why am I receiving a nil value in this imageview? [closed]