Set Scrollview in Swift
override func viewWillLayoutSubviews()
{
super.viewWillLayoutSubviews();
self.scrollView.contentSize.height = 3000; // Or whatever you want it to be.
}
override func viewWillLayoutSubviews()
{
super.viewWillLayoutSubviews();
self.scrollView.frame = self.view.bounds; // Instead of using auto layout
self.scrollView.contentSize.height = 3000; // Or whatever you want it to be.
}