Reputation: 13
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) https://i.sstatic.net/KtZfR.png
The Main.storyboard is : [2]: https://i.sstatic.net/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 :)
Upvotes: 0
Views: 262
Reputation: 27428
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 :)
Upvotes: 1