Changes

Jump to: navigation, search

An Example SQLite based iPhone Application

682 bytes added, 17:51, 24 June 2010
Creating the Outlets and Actions
.
@end
</pre>
 
== Releasing Memory ==
 
Having allocted memory in the implementing the above outlets, it is important that we add code to free up any resources that were allocated during execution of the application. To do so, edit the coreDataViewController.m file again and modify the viewDidUnload and dealloc methods as follows:
 
<pre>
- (void)viewDidUnload {
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
self.name = nil;
self.address = nil;
self.phone = nil;
self.status = nil;
}
 
- (void)dealloc {
[name release];
[address release];
[phone release];
[super dealloc];
}
</pre>

Navigation menu