IamInTrouble
IamInTrouble

Reputation: 67

How to link Storyboard and Class in Empty app

fellows!

I request you help for my doubt below:

  1. I started an Empty Application in order to use the Core Data.
  2. After, I inserted a UIViewController class without XIB called MainView.m and MainView.H.
  3. And, I inserted an Storyboard.
  4. So, I tried to link MainView and the Storyboard using the menu on the right side of the screen, but the MainView didn´t appear in the field "Class".

Does anybody know why?

Already, I thank

Upvotes: 2

Views: 199

Answers (4)

jdiego
jdiego

Reputation: 112

You need a ViewController in the storyboard, then only go in the right menu in the Custom Class and select the name of your class

I can't post images but here is one

https://i.sstatic.net/hxuPc.png

Upvotes: 0

Taylor Maxwell
Taylor Maxwell

Reputation: 146

Click on your storyboard Drag and Drop a ViewController onto the storyboard Click on the yellow icon of the view controller Display Utilities area Display the inspector in utilities hover over icons in utilities to find it Find the class you created under custom class

Completed

Upvotes: 0

matt
matt

Reputation: 535944

I strongly recommend that you start with the Master-Detail Application template instead (with storyboard and Core Data). It works right out of the box, and even if you don't end up using a master-detail architecture, it has the storyboard and lots of templated boilerplate code for Core Data that you'll be able to use later on with very little modification.

Upvotes: 0

SpaceDust__
SpaceDust__

Reputation: 4914

You need to edit your plist and your

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

See the answer:

Started making my app, now need story boards

Upvotes: 1

Related Questions