Q:

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 ?

A:

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]));
  }
}

A:

did you set mainWindow if you are not please set your window in your project

