-
Notifications
You must be signed in to change notification settings - Fork 472
Creating Nested Views
Charlie Hieger edited this page Oct 21, 2015
·
7 revisions
It is often convenient to hold views within other views. When a (child) view is inside of another (parent) view, it is considered to be "nested" within that view. Among many other things, this allows us to easily move or animate all the nested views by simply moving or animating the parent view.
- Drag a UIView from the Object Library onto your ViewController in the Storyboard.
- If you don't want the view to be seen, you can set it's background default.
- Method 1: Drag the views you want to be nested from the Object Library into the parent view in the Storyboard.
- Method 2: Drag the views you want to be nested from the Object Library into the Document Outline.
- You can change which views are in front or back (View Hierarchy) by adjusting there order in the Document Outline.