Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Specify App Delegate for Storyboard in iOS

I'm trying to change my App's main interface which currently is set to a .xib file in the project's "General Configuration Pane" to a new storyboard.

I have created the storyboard, and selected it as the main interface. But when I launch the application in simulator, I get a black screen and the following message printed in the console : "There is no app delegate set. An app delegate class must be specified to use a main storyboard file."

How should I do that ?

like image 852
Sepehrom Avatar asked Jan 20 '14 05:01

Sepehrom


1 Answers

The app delegate class is generally specified in main.m:

int main(int argc, char *argv[])
{
  @autoreleasepool {
      return UIApplicationMain(argc, argv, nil, NSStringFromClass([TCAppDelegate class]));
  }
}
like image 92
Dave Batton Avatar answered Oct 16 '22 23:10

Dave Batton