Hi, i know its already allot of info about that in internet, but i'm new to programming and little confused, i need little help please... for example i have 10 views controllers and switching between it with a buttons for example i switching with
-(IBAction)goToSecondView:(id)sender {
SecondViewController *secondView = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
[self presentModalViewController:secondView animated:NO];
[secondView release];
}
/* or */
-(IBAction)goToSecondView:(id)sender {
SecondViewController *secondView = [[SecondViewController alloc]
initWithNibName:@"SecondViewController" bundle:nil]; [self.view addSubview:secondView.view];
[secondView release];
}
and after need if i switch to remove the first view with that:
[self.view removeFromSuperview]; /* or */ [self dismissModalViewControllerAnimated:YES];
and i dont know how to make remove the first view when i switching to second, for example when go from FirstView to SecondView the second view, need to remove the FirstView and after from SecondView go to ThridView or to SevenView example and need to remove the SecondView... how can i do that?can you make a sample code please? i know its very easy but not for me, im new to programming
--------------------update-----------------------------------------------------------------
i want make something like > here < but i dont understand all, can any one make a sample code please?.
Thank You Very Much