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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -