0

I have an error in this line.

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    // Override point for customization after application launch.
    [self.window addSubview:_viewController.view];
    [self.window makeKeyAndVisible];
    return YES;
}

I'm using Xcode 4.1 and reading Appress Book "Beginning iPhone 4 Development" Chapter 4.

Regards, Herman

4

1 回答 1

1

检查您的 IBOutlets。查看它们是否都已连接,如果您看到!右侧有任何插座,则删除该插座,这意味着您之前已连接了插座,然后在标题中将其删除。这会导致 SIGABRT 崩溃。检查 IBActions 的相同内容。

于 2011-08-28T14:16:18.043 回答