Can we print an array that is declared in one view controller class in another?
If so how can we do it?
I had tried on it several ways by importing the view controller,used NSLog… but couldn’t do so,please do help me.
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.
One way of approaching it can be declare the
delegateof theview controllerfrom which u want to pass the array. Now include thedelegatein the otherview Controllerand call itsdelegatefunction. Pass the array u want to print in itsdelegatefunction.