Hi,
I have 2 views that switch between each other. The first time they are loaded, the viewDidLoad functions are called, however as the views are switched back and forth, they viewDidLoad is never called again.
Neither Dealloc nor viewDidUnload are called at any point.
The obvious answer is that I haven't deallocated something, however 1 of the views has just 1 button on it (to switch the views) and this is all the code it has
Any idea whats going wrong here?
Thanks
I have 2 views that switch between each other. The first time they are loaded, the viewDidLoad functions are called, however as the views are switched back and forth, they viewDidLoad is never called again.
Neither Dealloc nor viewDidUnload are called at any point.
The obvious answer is that I haven't deallocated something, however 1 of the views has just 1 button on it (to switch the views) and this is all the code it has
Code:
-(IBAction)toView2:(id)sender
{
Slider2AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];
[appDelegate switchToView2:self.view];
appDelegate = nil;
[Slider2AppDelegate release];
[appDelegate release];
}
Any idea whats going wrong here?
Thanks