swift - Loading nib into NSScrollView -
i trying implement view no horizontal scrolling (will resize , down) , variable vertical scrolling.
i've trying embedding view on scroll view in storyboard , after lot of fiddling got working content hidden outside window never see while editing thought i'd put content in separate nib file , load onto scroll view.
i got working if resize main window view nib not resize scrollview size width doesn't change , stays in top left corner.
in view has scroll view have simple code load in content nib file called detailedview.swift:
self.detailedview = detailedview(nibname: nil, bundle: nil) self.scrollview.documentview = self.detailedview.view
in detailedview have elements constrained view adding top, leading , trailing constraints.
anyone got thoughts or can point me in right direction?
thanks
Comments
Post a Comment