I need to set setAnimationBeginsFromCurrentState in a block. I can’t find any documentation or example on how to do it.
I need to convert this:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationBeginsFromCurrentState:YES]; //The problem
[UIView setAnimationDuration:kKeyboardAnimationDuration];
[self.view setFrame:viewFrame];
[UIView commitAnimations];
Into a block as well as set the setAnimationBeginsFromCurrentState property.
When using block based
UIViewanimation you can passUIViewAnimationOptionBeginFromCurrentStateto the animation’s options.