I have a project with ARC but I disable it and now I have problem with properties as:
@property (weak, nonatomic) IBOutlet UIView *frame;
now I have an error for “weak”, what kind I can replace? retain?
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.
The closest thing to
weakunder manual reference counting isassign. Keep in mind, that unlikeweakunder ARC, the value of assign properties is not automatically zeroed when the instance pointed to by the property is deallocated. So, you need to be careful to discard assign references to objects before they’re deallocated.Why did you disable ARC?