Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode - Nested storyboard views - hide/show?

Tags:

xcode

I have a reasonably complicated UIView which contains several nested views which are displayed according to a variety of responses - all are laid out in a storyboard.

Is there a way to hide a view in the foreground to work on a view in the background? As its really fiddly selecting particular elements to arrange / style!?

like image 587
Dancer Avatar asked Oct 24 '13 15:10

Dancer


1 Answers

I've been trying to figure out a nice way to do this, some function like hiding the view and its subviews from the storyboard (not from the actual application), but couldn't find anything.

This is not the nicest of ways but it is how I do it at the moment...

What I do is select the views I want to "hide" from the document outline and add a constant (screen width/height) value to its x/y origin value to push them out of the screen. I also change the document label for those views (Identity Inspector > Document > Label) to something like "Hidden" so I can later search for the "hidden" views from the document outline and put them back where they belong.

like image 89
7usam Avatar answered Oct 26 '22 13:10

7usam