ola7
ola7

Reputation: 1

Linking View Controller to Storyboard objective c

I know that this should be very easy but I haven't been able to find out how to do it. The suggestions that I have do not work. I basically have a view controller in my storyboard and I want to link it to a MyController.m file which I created manually.

I was wondering what the proper way of doing that is. Thank you in advance.

Upvotes: 0

Views: 201

Answers (1)

ZeMoon
ZeMoon

Reputation: 20284

  1. Click on the viewController which you want to associate with that specific class.

    Step 1

  2. Go to the utilities pane (right-most column, where properties etc are found).

  3. On the identity inspector (3rd tab from left), you will see a section called custom class.
  4. Fill in the name of your class there.

    Steps 2, 3 and 4

Upvotes: 1

Related Questions