在马远帮助下实现的文字翻滚效果,谢谢 呵呵
/**
* 开始翻滚: "安全扫描中..."及扫描到的网址
*/
- (void)scrollViewRoll
{
rollCount++;
if (rollCount ==3) {
[self resultShow];
return;
};
[UIViewanimateWithDuration:0.5animations:^ {
_scaningLabel.frame =CGRectMake(60, -56,220,56);
_scanedLabel.frame =CGRectMake(60,0,220, 56);
} completion:^(BOOL finished) {
_scaningLabel.frame =CGRectMake(60,56,220, 56);
[selfperformSelector:@selector(rollShow)withObject:nilafterDelay:1.0];
}];
}
- (void)rollShow
{
[UIViewanimateWithDuration:0.5animations:^{
_scaningLabel.frame =CGRectMake(60,0,220, 56);
_scanedLabel.frame =CGRectMake(60, -56,220,56);
}completion:^(BOOL finished) {
_scanedLabel.frame =CGRectMake(60,56,220, 56);
[selfperformSelector:@selector(scrollViewRoll)withObject:nilafterDelay:1.0];
}];
}
文字翻滚效果实现
1万+

被折叠的 条评论
为什么被折叠?



