Hi,
I am traversing from my first view to the second view using the below mentioned code.
In my second view however, its viewDidLoad method, where am initializing some of my variables, is being called TWICE.. Due to this all my variables and subviews of the second view are getting re-initialized.. When i use the touchesBegan event, the imageViews are becoming 0x0.. Can any1 please tell why this is happening and how to prevent this from happening..
Thanks n Regards,
USUF
I am traversing from my first view to the second view using the below mentioned code.
Code:
-(void)gotoNextView{
...
/*MainMenuController *mainMenuController = [[MainMenuController alloc]initWithNibName:@"MainMenu" bundle:[NSBundle mainBundle]];
self.menuController = mainMenuController;
[mainMenuController release];*/
self.menuController = [[MainMenuController alloc]initWithNibName:@"MainMenu" bundle:[NSBundle mainBundle]];
[self.view.window addSubview:[menuController view]];
...
...
}
In my second view however, its viewDidLoad method, where am initializing some of my variables, is being called TWICE.. Due to this all my variables and subviews of the second view are getting re-initialized.. When i use the touchesBegan event, the imageViews are becoming 0x0.. Can any1 please tell why this is happening and how to prevent this from happening..
Thanks n Regards,
USUF