对于 iOS3.0 及更早版本,使用这个:
方法1:
[UIView beginAnimations:@"ShowHideView" context:nil];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
...
新的 iOS4 可以做到这一点:
方法2:
[UIView animateWithDuration:1.0 animations:^{
firstView.alpha = 0.0;
secondView.alpha = 1.0;
}];
Q1。我想知道的是,在早期的方法中,他们在 beginAnimations 中有这个“ShowHideView”,那个方法是内置的吗?
Q2。beginAnimations 中还有其他内置动画方法吗?如果是,我在哪里可以找到所有这些方法?
Q3。最后,我可以在后面的方法(method2)调用中使用这些方法吗?