【发布时间】:2012-09-12 00:59:32
【问题描述】:
我想显示一个在页面上停留 5 秒但每次滚动视图滚动时都会出现的图像。所以很明显我需要为UILabel 和UIScrollView 的一些方法结合动画。老实说,我不确定使用哪一个。另外我在一个UIViewController 上有两个UIScrollViews,所以我不知道我应该设置什么作为代表。
以下是我现在的动画
[UIView animateWithDuration:0.3 animations:^{ // animate the following:
pageCountImage.frame = CGRectMake(0, 0, 100, 50); // move to new location
}];
【问题讨论】:
-
动画应该在滚动开始还是停止时出现?
-
动画应该在滚动停止时开始,然后动画在 5 秒后停止。
标签: iphone objective-c ios uiscrollview uiscrollviewdelegate