What is the difference between calling the methods with following types
1.
[self methodName];
and
2.
[self performSelector:@selector(methodName)]; // no afterDelay is used
Is it like performSelector will use different thread to work??
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.
In most cases, they are equivalent.
According to the documentation, the purpose of the
performSelector:variant is so that you can call methods that are defined dynamically and not actually present at compile-time. That’s all. For calling a method that is present at compile-time, there is no difference between the two.