1

I'm following Apple's Core Data Tutorial for iOS and am having issues pretty early on when I have to build the application for the first time at the Build and Test step.

I'm building this with Xcode 4.2 and iOS 5.

Here is my source

And a screenshot of what is appearing

Kyle Hayes
  • 5,225
  • 8
  • 38
  • 53
  • take a look http://stackoverflow.com/questions/7520971/applications-are-expected-to-have-a-root-view-controller-at-the-end-of-applicati – Manlio Jan 07 '12 at 19:00

1 Answers1

4

You didn't create the app window.

Add this line:

self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

on the top of

application didFinishLaunchingWithOptions
Tomasz Wojtkowiak
  • 4,910
  • 1
  • 28
  • 35
  • That was exactly the problem! I wonder why the tutorial doesn't have that line of code. – Kyle Hayes Jan 07 '12 at 19:16
  • 6 months later, and that tutorial is still broken. Thanks for this answer (and the question, too, obviously) –  Jun 29 '12 at 00:39