Adding an Object to Your Interface

Add a standard object to your interface by dragging it from the object library to Interface Builder.

bullet
To add an object to the user interface
  1. With a storyboard or xib file open in Interface Builder, open the utility area for the workspace window by clicking ../art/TB_ViewUtilities_2x.png in the view selector in the toolbar.

  2. Select the object library from the library pane by clicking ../art/LB_Objects_2x.png in the library selector bar.

  3. Locate the object you want to add.

    Scroll through the list of objects. Type into the text field in the filter bar at the bottom of the list to restrict the items displayed in the list.

  4. Drag an object (like Button in the screenshot) from the library to either the outline view in the dock or onto the canvas.

    ../art/DragButton_2x.png../art/DragButton_2x.png

You can design much of your user interface with standard elements such as windows, text fields, and buttons from the object library. The objects in the library meet Appleā€™s human interface guidelines and have been tested to ensure that they function properly.

After you drag the object from the library to Interface Builder use the built-in guides to position the object and resize it if necessary.