Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Initial window with no width in application using Storyboards

I am trying to understand Storyboard in XCode. I have created a new Mac OS X Application from template and defined a simple Storyboard, like in the following image:

enter image description here

The problem is that when I run the application, my window looks like this:

enter image description here

I have to resize it to see RIGHT and LEFT part of vertical split view. I have defined height and with of my window so I don't know why is this happening and I really don't know why is this window correctly shown with view controller below instead of split view controller.

enter image description here

enter image description here

What I am doing wrong with split view controller?

like image 796
user1563721 Avatar asked Apr 10 '16 14:04

user1563721


1 Answers

A solution is to add width constraints with a minimum width to the views in each side of the SplitView.

I got the idea from this answer to a similar question.

like image 160
MartinW Avatar answered Nov 14 '22 23:11

MartinW