0
-(IBAction)buttonPressed1:(id)sender 
{
SignView *tempVC = [[SignView alloc] initWithNibName:@"SignView" bundle:Nil];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationTransition: UIViewAnimationTransitionCurlUp forView:self.view cache:YES];
[UIView setAnimationDelay:0.0f];
[UIView setAnimationDuration:0.2f];
[self presentModalViewController:tempVC animated:YES];
[tempVC passDataWithString:button1.titleLabel.text andColor:currentlySelectedColor isNightModeOn:nightMode.on];
[UIView commitAnimations];
} 

can anyone help me figure out why this code doesn't work?

1 Answer 1

1

This method will call beginAnimations: and commitAnimations, which cannot be nested.

[self presentModalViewController:tempVC animated:YES];

So move it to before beginAnimations: or after commitAnimations.

Sign up to request clarification or add additional context in comments.

1 Comment

Well I moved it to both places and the UIView doesn't curl up like a page turning. The SignView slides into place instead of Curling into place.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.