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?
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?
How many times will this be asked per day? NO, you don't have to release it. The object is managed by ARC. For more info, read this doc link
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.