I move some UIButtons off screen and I can still enumerate them when I go through the subviews. I want to “release” them to make the script run faster, but how do I do that on iOS with ARC?
Share
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.
Thank you for all your respond but the correct answer to my question (in releasing instance objects. I should have put that in the question…sorry guys) are as follow:
The key point is to declare it “__weak”, then it can be set to nil.
Thanks for all your inspiration!