0

I have a tabbedviewcontroller with different viewcontrollers connected but for each view controller I'm trying to have multiple views inside them. How can I add these views? Programmatically using swift or is there a way to do it in interface builder xcode 6?

1
  • You can multiple UIViews within a view. Programmatically or by dragging a View from the Object library into the storyboard. Commented Oct 12, 2014 at 21:23

1 Answer 1

1

Search for UIView in the object library and drag a view into your view controller. You can then resize it to your preferences. You will then want to create an outlet for each view in your view controller so that you can interact with them in your code.

enter image description here

Sign up to request clarification or add additional context in comments.

2 Comments

OHHH okay so each view though I can connect to a separate view controller? How do I resize the viewcontrollers to fit the view?
Yes. Each view controller can have multiple views. Once you have dragged the view into the view controller just click and drag the corners until the guidelines line up with the edges of the view controller.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.