I don’t want to passAnInt with object. Can I pass it with Int only? if not , how can I do so? Thank you.
[myController performSelectorInBackground:@selector(passAnInt:) withObject:int];
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.
You can box the
intwithin an NSNumber. If your method signature is:Then you can call it using:
Then, in your method, you can get the
intback out again using NSNumber’sintValuemethod. See the NSNumber class reference for more.