我在 + (void)beginAnimations:(NSString *)animationID context:(void *)context
方法中有动画 ID 的具体列表吗?
例如我看到这段代码:
[UIView beginAnimations : @"Display notif" context:nil];
[UIView setAnimationDuration:1];
[UIView setAnimationBeginsFromCurrentState:FALSE];
CGRect frame = paperCurl.frame;
frame.size.height -= 40;
frame.origin.y += 40;
paperCurl.frame = frame;
[UIView commitAnimations];
最佳答案
此键不是任何预定义的标准键。这些键只是用户定义的名称,用于引用此动画以供将来使用。 Check this link for reference
关于iphone - beginAnimations方法中的animationID列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8969859/