【发布时间】:2011-08-21 10:02:05
【问题描述】:
我有一个 UIViewController 应该控制 2 个 UIImageViews 淡入。
我设法使用 UIView animateWithDuration 方法为它们设置动画,如下所示:
[UIView animateWithDuration:1.5
animations:^{
[mFrontpageTitle setAlpha:0];
[mFrontpageTitle setAlpha:1];
}
completion:^(BOOL finished){
[self AnimatePause];
}];
和
-(void)AnimatePause {
[UIView animateWithDuration:5.0
animations:^{
[mFrontpageTitle setAlpha:0.99];
[mFrontpageTitle setAlpha:1];
}
completion:^(BOOL finished){
[self AnimateAuthor];
}];
触发下一个动画。现在,创建从 .99 到 1.0 的过渡并不是很干净。
是否有更好的方法来触发阻塞或发送消息,只需定义持续时间?
谢谢
祖帕
【问题讨论】:
标签: objective-c ios timer uiviewanimation