I have a following problem:
I have NSScrollView
in which I would like to add subviews from the bottom one below another. I started using addSubview but I don't how to position it in a proper way in that NSScrollView
. NSScrollView
has a fixed size and when it will be filled it should allow user to scroll. Adding subviews to the scroll view adds it to the top of scrollView. Adding more then one subview put them one on another. I tried also with adding constraints from code but adding I'm not sure if it's good attitude because adding new subview would force me to change constraints of every previouse added subview. I would be thankful for any hint or direction.
Edit: Actually I moved from another appropach to this problem. I had created NSTableView
in which I was adding views but the problem I encountered was the fact of adding views to the bottom of the table. So additional question is if it was good idea to swich to the pure NSScrollView
.
NSScrollView
in which I haveNSView' and in it
View'. I haveIBOutlet
forNSScrollView
and I'm using methodaddSubiew
on this. – PawelPawel