let’s say I have a selector that may be assigned to several different methods – each one has a different return value.
Is there a way to check what is the return value of the method the selector is holding before calling “performSelector”?
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.
Value? No. Type? Yap. It seems that you want the return type of the method (or your question wouldn’t make sense).
Then you can examine the returned type string in
type. For example,"v"means void (google the full list).