Objective-C Thread 1:Program received signal: “SIGABRT”

淺唱寂寞╮ 提交于 2019-12-25 02:21:49

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!