Changes

Jump to: navigation, search
m
Text replacement - "<google>ADSDAQBOX_FLOW</google>" to "<htmlet>adsdaqbox_flow</htmlet>"
== Automatic Reference Counting (ARC) ==
<googlehtmlet>ADSDAQBOX_FLOWadsdaqbox_flow</googlehtmlet>
In the first step of the previous section we allocated memory for the creation of the class instance. In releases of the iOS SDK prior to iOS 5, good programming convention would have dictated that memory allocated to a class instance be released when the instance is no longer required. Failure to do so, in fact, would have resulted in memory leaks with the result that the application would continue to use up system memory until it was terminated by the operating system. Those familiar with Java will be used to relying on the garbage collector to free up unused memory automatically. Historically, Objective-C has provided similar functionality on other platforms but not for iOS. That has now changed with the introduction of automatic reference counting in the iOS 5 SDK and it is not necessary to call the release method of an object when it is no longer used in an application.

Navigation menu