I am working on an iphone app with push notifications. My question is how to call a function from a classB when i receive a push notification without creating an instance of that classB nor using static method?
Many thanks 🙂
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 will need to hold a reference to classB from within the object that receives the push notification:
You will obviously have to set the instance of
classBin this class before it will work: