when iam trying to call
rootviewcontroller *rootview=[rootviewcontroller alloc];
[rootview methodname];
is showing warning “root view controller may not respond”
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.
It means that “methodname” is not a “public” (*) method of your rootviewcontroller class.
You need something like
At the moment, while rootviewcontroller might respond to the message called “methodname”, the compiler can’t see that it does (because you’ve not told it so through the above).
(*) Objective-C methods are all public in way C++/Java people would understand the term. I suppose I should really say “is not a method declared in the
@interfaceof the class”.