I want my scroll view (which is in top half of view) to be scrolled to the bottom of the scroll view when my app is booted up. I want it so that when the app boots up I cannot scroll down any further.
I have tried:
scrollView.contentSize = CGSize(width: self.view.frame.size.width, height: 667)
scrollView.contentOffset = CGPoint(x:0, y:self.view.frame.size.height )
However, this only brings my scroll view almost to the bottom. I can still scroll down a little, which I don't want.
I have also tried:
let bottomOffset = CGPoint(x: 0, y: scrollView.contentSize.height - scrollView.bounds.size.height)
scrollView.setContentOffset(bottomOffset, animated: true)
but that doesn't seem to work either.