Please help me i have a NSMutableArray which contains data until viewDidLoad is finished.
When I click any button I try to get the data in it and it just disappears.
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.
If you created your array with a variant of
[NSMutableArray array]it will be autoreleased. AssumingmyArrayis a property of your class, you should useIf you still use reference counting, you need to add
[myArray retain];unless it is already retained in the@propertydeclaration and release it inviewDidUnload:.