Hi,
I got error in the following code.
//This code is used to display the view2 when click the button.
-(IBAction)displayid)sender
{
Test2ViewController *vController = [[Test2ViewController alloc]
initWithNibName"Test2View" bundle:[NSBundle mainBundle]];
//I got error in this line only.The simulator stops in tis line
self.view2Controller=vController;
[vController release];
[window addSubview:[view2Controller view]];
[window makeKeyAndVisible];
}
Can anybody please tell me the reason for the error?
Thanks
judy
I got error in the following code.
//This code is used to display the view2 when click the button.
-(IBAction)displayid)sender
{
Test2ViewController *vController = [[Test2ViewController alloc]
initWithNibName"Test2View" bundle:[NSBundle mainBundle]];
//I got error in this line only.The simulator stops in tis line
self.view2Controller=vController;
[vController release];
[window addSubview:[view2Controller view]];
[window makeKeyAndVisible];
}
Can anybody please tell me the reason for the error?
Thanks
judy