I have received this message ever since I started building my first iPhone program several months ago.
I want to check if a delegate implements a given method. It works but I get this warning.
How can I do it the correct way?
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.
The
respondsToSelector:method is declared in theNSObjectprotocol. You have to make sure that your custom protocols also conform to theNSObjectprotocol. Change the declarations of your custom protocols from:to: