简体   繁体   中英

SIGABRT ERROR for a single IBAction and IBOutlet

I am extremely new to XCode and Swift so would prefer any answers to be as simple as possible :)

I get the following when i try to run the app:[1]: (So the app just crashed pretty much :P) http://i.stack.imgur.com/KtZfR.png

The Main.storyboard is : [2]: http://i.stack.imgur.com/ngYv5.png

I think the problem (from viewing other stackexchange/overflow posts) is from deleting IBActions/Outlets. In the previous images, I have added and deleted IBActions/Outlets from the ViewController and Main.Storyboard. I have tried restarting XCode but it does not help. All I want is so that the app doesn't crash! How do I get rid of this error (using as simple language as possible please) Thank you in advance :)

If you have delete any outlet or action which was connected with button or your any object then remove it's reference from connection inspector . Select your button from interface builder (story board) and ope connection inspector and press (x) to deleted outlets or action. I am attaching screenshot,

在此处输入图片说明

Here you can see referencing outlet. you can delete it by pressing cross button if you have multiple outlet or deleted outlet or action

Hope this will help :)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM