Changes

Jump to: navigation, search
Implementing the touchesEnded Method
yCoord.text = [NSString stringWithFormat:
@"end = %f, %f", endPoint.x, endPoint.y];
}
</pre>
 
== Releasing Memory ==
 
Finally, make sure the memory allocated to the outlets is released:
 
<pre>
- (void)dealloc
{
[xCoord release];
[yCoord release];
[super dealloc];
}
.
.
- (void)viewDidUnload
{
[super viewDidUnload];
// Release any retained subviews of the main view.
// e.g. self.myOutlet = nil;
xCoord = nil;
yCoord = nil;
}
</pre>

Navigation menu