Trouble With NSSplitView Starting Sizes (Storyboards and Swift)

孤人 提交于 2019-11-30 07:29:09

The initial size of the split view is based on the constraints. If there are no constraints to satisfy then the width or height is 0. You are correct, you can't add any constraints to the root view. You have to add subviews that have constraints that imply the desired height or width.

This could simply be a NSView with a set width or height constraint.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!