I'm very new to iOS development and am at a lost about using the scrollview
. I'm trying to create a vertically scrolling
page in the storyboard. I can do it all in code, but for some reason, in the storyboard designer, it doesn't seem to work.
I've created a view controller and set the simulated size to free form, with a height of 1500. I've then added a view. I've then added a scrollview. In the ViewController class I've set the scrollview's frame to be 375x667
and the content size to be 375x1500
. It scrolls without a problem.
I then add another view, and make it a subview of the scrollview
. Then I add a button to the storyboard designer at coordinates x: 35 y: 1100
. When I build the app and display it on the simulator, the button doesn't appear.
Any advice would be greatly appreciated.