if i run following gives error,current controller is table controller....
SetController *aSecondView = [[SetController alloc] initWithNibName:@"Sets" bundle:nil]; SchedAppDelegate *mainDelegate = (SchedAppDelegate *)[[UIApplication sharedApplication] delegate]; [mainDelegate setSettingsViewController:aSecondView]; [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:2.0]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:[[self view] superview] cache:YES]; [self.view removeFromSuperview]; [self presentModalViewController:aSecondView animated:NO]; //[aSecondView release]; [UIView commitAnimations];