Is there a fast way to see if a method is wired/bound from any xib file in my project ?
In other terms, I need to know if I can get rid of such method or it is used in Interface Builder.
Thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I do not think that
XCodehas a filter for boundIBActions. So I guess we’re left with 2 possible solutions:Visually identify bound methods (here I did a search for

IBAction. Bound actions are denoted with a filled circle, while unbound actions are empty circles). Although this method works, it’s not very useful when you have a lot of connections going on.Parse the
xmlproduced by interface builder. If you take a look at thexib/storyboardfiles, you will see that there are<connections>tags with<action>children similar to this:<action selector="fingeroff:" destination="ars-ip-845" eventType="touchDragOutside" id="1Nx-xZ-K1I"/>, whereselectoris your method signature. I guess you could parse those xmls and make a list of the bound methods (also a nice idea for an app!)If anyone though has a better way for dealing with this problem, please share!