So I'm trying to create a UIScrollView
only in storyboard that allows me to add scrolling labels for more than the height of the VC. Here's what I did:
Created
UIScrollView
that took up the size of the any width any height VCMade constraints 0 for spacing to nearest neighbor on top, bottom, left, and right
Created a view that is a
subView
of theUIScrollView
with the same width as the any width any height VC but height of 1500 (because I only want it to scroll vertically).Set constraints to nearest neighbor as 0 for ONLY left, top, and right and set the height constraint as 1500.
I put a label at the top of the
subView
and at the bottom
When I run the app on an iPhone 6, does not scroll vertically as I want it to. Any ideas why this is not working? Thanks in advance.