2

I have a scroll view that I set the contentInset of programatically like so:

scrollView.contentInset = UIEdgeInsetsZero

When my view renders, however, there is space above the content in the scroll view. I have already set adjustScrollViewInsets to false on the parent view. If I set the top inset to a negative number, the content moves closer to the top of the screen. Any ideas why this is happening?

Here is an image (the contentInset in this image is UIEdgeInsetsZero): Screenshot

Max
  • 15,157
  • 17
  • 82
  • 127

0 Answers0