1

I created a new UIViewController from the wizard.

I added a UITabbarController and added view controllers for each tab.

How can I get File's Owner to set the view property correctly?

Sheehan Alam
  • 60,111
  • 124
  • 355
  • 556

1 Answers1

2

From the nib file in your interface builder

  • Click on file's owner icon on the left bar (top one, looks like a yellow outlined box) If you don't see the right-hand sidebar, click on the third icon above "view" in your toolbar. This will show the right-hand sidebar
  • In the right-hand sidebar, click on the third tab--the one that looks a bit like a newspaper
  • Under "Custom Class" at the top, make sure Class is the name of the ViewController that should correspond to this view. If not, enter it
  • In the right-hand sidebar, click on the last tab--the one that looks like a circle with an arrow in it
  • You should see "outlets" with "view" under it. Drag the circle next to it over to the "view" icon on the left bar (bottom one, looks like a white square with a thick gray outline

Taken from here

Community
  • 1
  • 1
Man of One Way
  • 3,904
  • 1
  • 26
  • 41