ios: 'release' is unavailable: not available in automatic reference counting mode [duplicate]
This question already has an answer here: I'm learning how to program on the iOS operating system using the book "Head first iPhone and iPad development" (second edition). When I try to compile the code from the book, I get the error that the use Do I have to explicitly release the memory in this case? If yes - how? |
|||||||||||||
marked as duplicate by Josh Caswell, Caleb, Mick MacCallum Apr 10 '14 at 19:05This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question. |
|||||||||||||
|
Sounds like your book predates ARC. You can develop an application with the same code if you disable ARC in the project settings: But... ARC has been out for a while, and iOS changes fast. If the book doesn't mention ARC, it's a probably sign that it targets a version of the iOS SDK less than 5.0, which is not necessarily the best way to learn iOS development these days. You can roughly translate to an ARC environment by just removing
|