Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove a connected action?

Tags:

xcode

Learning iOS development and followed the tutorial on Apple's web site. After I have connected a button to the view controller code (by ctl-drag), I decided to rename the action. Instead of refactoring, I removed the section of code and reconnect (by ctl-drag). Now the app crashed everytime I tried to run it because it is still looking for the old action.

How do I resolve this situation instead of creating a new project?

I am using Xcode 9.

like image 912
user1941319 Avatar asked Sep 01 '25 05:09

user1941319


1 Answers

You can remove action in this manner here you will find two action like this already connected to old one so just remove that and it will disappear and connect to new oneenter image description here

like image 93
Hitesh Sultaniya Avatar answered Sep 03 '25 22:09

Hitesh Sultaniya