How to Remove All References for Outlet

how to remove all references for outlet

You have to unlink the outlet from the item in interface builder. Select the UI element that you linked the outlet to and then remove it in the "Connections Inspector".

Sample Image

Click the little "x" ^^^

How do I remove all reference outlets from a view at once?

By clicking on View Controller it will show on the right side all connected interface outlets, and it's easier to remove one by one there. This is not what you looking for, but at least will help to remove outlet references a bit faster.

Sample Image

Xcode Interface Builder - correct way to delete/rename miswired IBOutlets / IBActions?

Use the Connections inspector to break the connection. Then you can modify/delete the object and/or the code without having to worry.

Sample Image

Clear Connections/Outlets in ViewController Class?

If you paste the classes in while the source project is open, it will link for some reason. Once you quit xCode and reopen just the new project, it will clear the connections to the old project!

delete unused outlets in xcode

It is very easy, just click the delete button

Connections Inspector panel

click the X

xcode 7.3: Could not insert new outlet connection and deleting DerivedData doesnt work

I've found a way to reproduce systematically this error in a simply way

  • Drag the azure line on ViewController and leave drag inside the Hint ("Insert Outlet or OutletCollection): The create connection box appear normaly

Sample Image

  • Now after click "Connect" button....BUUM! "Could not insert new outlet connection"

Sample Image

  • Finally try to do the same thing but leaving the drag outside the hint box

Sample Image

  • After click "Connect" you will discover that now all work fine!

    Hope this help!

Unused IBOutlet cannot remove from File's Owner Connection Inspector, OutLets List

Sometimes I have the same problem. Make sure you remove it from the Interface Builder, Product -> Clean and then restart Xcode.

That usually does the trick for me



Related Topics



Leave a reply



Submit