Duncan Tilka
Duncan Tilka

Reputation: 79

Adding multiple views to view controller inside a tab controller using swift

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?

Upvotes: 0

Views: 1194

Answers (1)

user3746428
user3746428

Reputation: 11175

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

Upvotes: 1

Related Questions