Reputation: 33
Cannot convert value of type 'UIImage?' to expected argument type 'UIView' to expected argument type 'UIView'
Upvotes: 1
Views: 13070
Reputation: 3657
Try with this:
ScrollView1.addSubview(imageView)
Basically, You are adding the image instance in the scrollView but the required param is a type of UIVIew
and the image wrapper is UIImageView
so you need to add the wrapper not the image directly.
Upvotes: 9