Cancel button not working?

I am learning to code using iOS 14 Programming for beginners.
I was trying to place the Tab Bar buttons and confused the correct view in the scene. I was trying to add them to the Navigation Controller scene, but should have added them to the View controller scene. When I run the code the Cancel button should return to the previous scene, but does not.
How do I get rid of the actions that I have made by trying to add the tab bar to the wrong scene, assuming that this is what is causing the button not to work?
I have not added any code as I don't think that will serve any purpose at this stage.
Answered by Rocky48 in 675399022

I'm an *****! I saw the segue when I linked to the exit icon but did not click on it, as I thought that as there was only one item it was automatically choosen!
In the storyboard, select the button for which you want to remove the action.

Open the connection inspector on the right panel of Inspectors (last icon on the right in shape of a dot in a circle.

You will find either an action or a sent event defined.
Click on the small x to remove the connection.

Do an option clean build folder to get fully rid of it.
Accepted Answer

I'm an *****! I saw the segue when I linked to the exit icon but did not click on it, as I thought that as there was only one item it was automatically choosen!
Cancel button not working?
 
 
Q