Possible Duplicate:
release method deprecated
I have this code
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:yourURL];
Do I need to release it if my project is using ARC? What should I look for to prevent unnecessary leaks?
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 release method is no longer relevant with ARC. If you want to read more about ARC check out this handy article.
If you’re still concerned about leaks (they can still happen), you can click and hold on the “run” arrow at the top left of the XCode window, select “Profile,” and run. This will open up the Instruments app. From there, you can select the “Leaks” module which will show you any leaks it finds in your program as it runs.
I hope this helps.