问题
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
回答1:
Check your IBOutlets. Look if they are all connected and if you see any outlets with an !
on the right side then delete that outlet, that means that you have connected an outlet earlier, and have deleted it in your header afterwards. That causes a SIGABRT crash. Check the same thing for IBActions.
来源:https://stackoverflow.com/questions/7221433/objective-c-thread-1program-received-signal-sigabrt