Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

delete unused outlets in xcode

Tags:

xcode

outlet

In Xcode I created an outlet and made it connected. Then I deleted the connection by clicking the cross in connection inspector. However, the unused outlet always appears there. How can I deleted the unused outlet. (I have deleted the code in the .m file)

like image 807
Bohan Avatar asked Sep 24 '12 06:09

Bohan


People also ask

What is an outlet in Xcode?

An outlet is a property of an object that references another object. The reference is archived through Interface Builder. The connections between the containing object and its outlets are reestablished every time the containing object is unarchived from its nib file.

How do I rename an outlet in Xcode?

Right click the IBOutlet that you want to rename, delete reference outlet, and then reassign it, but you don't have to do anything with your code. Save this answer.


1 Answers

It is very easy, just click the delete button

Connections Inspector panel

click the X

like image 149
Bohan Gao Avatar answered Sep 28 '22 08:09

Bohan Gao