0

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

Ash R
  • 195
  • 4
  • 12

2 Answers2

1

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

Community
  • 1
  • 1
Aditya Deshmane
  • 4,676
  • 2
  • 29
  • 35
  • 1
    Wow, thats pretty cool although doesn't feel like that's what Apple intended it to be used for. In this project, if you control drag from a cell to the UIView in the dock, you get these options to link it to...http://postimg.org/image/ssrpop1oj/ – Ash R Dec 23 '13 at 19:29
  • Just had a go at the tableView trick, doesn't seem to work anymore. – Ash R Dec 23 '13 at 19:57
0

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".

Gabriel
  • 3,319
  • 1
  • 16
  • 21