background image

31 - (void)applicationDidFinishLaunching:(UIApplication *)application {
32 // copy the database from the bundle if necessary
33 if (! [self initializeDb]) {
34 // TODO: alert the user!
35 NSLog (@”couldn’t init db”);
36 return;
37 }
38     // Add the tab bar controller’s current view as a subview of the window
39     [window addSubview:tabBarController.view];
40 }