34,333
edits
Changes
→Implementing the Actions and Outlets
We will need to do some more coding later but at this point it makes sense to design the user interface and establish the connections between the user interface object and the outlets and action we have declared so far.
== 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;
}
- (void)dealloc {
[name release];
[address release];
[phone release];
[super dealloc];
}
</pre>
== Designing the User Interface ==