Dragging views into the scene dock in interface builder

755 Views Asked by At

I'm working on an existing project and I noticed there was a UIView in the scene dock in IB.

I then noticed you can actually drag any view into the dock, toolbars, buttons, switches etc

What's the purpose of this, I couldn't find anything searching google but it looks useful?

In my case it seems to link 'selectedBackgroundView' to each of the cells.

Interface Builder

2

There are 2 best solutions below

2
On

When i was searching for creating custom view using storyboard i found that some are using it for custom views. See this Custom views with Storyboard

0
On

In fact you can drag any object to the scene. And then it is showed in that gray dock. For example Search Bar Controllers or any other object you want to be automatically created and linked when the view is "loaded from nib".