-(IBAction)openview:(id)sender { helloviewopen = [[helloview alloc] initWithNibName:@"helloview" bundle:nil]; [UIView beginAnimations:@"flipping view" context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationCurve:UIViewAnimationCurveEase InOut]; [UIView setAnimationTransition:UIViewAnimationTransitio nCurlDown forView:self.view cache:YES]; [self.view addSubview:helloviewopen.view]; [UIView commitAnimations]; }