Advertisement
Guest User

Untitled

a guest
Feb 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. I finally found a proper way to get scrollviews working...
  2.  
  3. # View hierarchy:
  4.  
  5. * UIView (Main view)
  6. * UIScrollView (which I want of the same exact size of the Main view)
  7. * UIView (Container View containing all the stuff to be displayed in the scroll view)
  8.  
  9. # Constraints:
  10.  
  11. ## UIScrollView

  12. * width equals to the one of the Main View
* center view on X axis horizontally (center X)
  13. * 0 top an bottom margin with superview
  14.  
  15. ##Containar View
  16.  
  17. * width equals to the one of the Main View - 0 leadin, trailing, top and bottom margin with superview (which is the Scroll View)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement