2
votes

I have UIImageView as a background image on UIViewcontroller and than UIScrollview upon it, I have scrolling issue when UIImageview is added on self.view.

Scroll perfectly scroll without imageView, but with imageview its not scrolling

This is my storyboard view hierarchy

enter image description here

1
link these constraint i have setbhumi gajjar
Project link, u can download zip and check, when im going wrong.bhumi gajjar
thank u so much @EICaptainbhumi gajjar

1 Answers

0
votes

After checking your constraints, I had found just one mistake

You gave one equal height constraint to superview to your view inside scrollview because of that scrolling problem occurs.

Solution

Just delete that equal height constraint and give a simple height constraint.. for e.g. height = 550 like that .. and you are enable to scroll your view.