In the code below, alert was allocated and initialized, displayed, and then released. Before and after release, alert still points to the same address. Why does the system not set the alert pointer to nil after release?:
-(void) viewDidLoad {
UIAlertView * alert = [[UIAlertView alloc] initWithTitle: @”Hello”
message: @”This is an alert view”
delegate: self
cancelButtonTitle: @”OK”
otherButtonTitles: @”Option 1”, @”Option 2”, nil];
[alert show];
[alert release];
[super viewDidLoad];
}