我想创建像http://disqus.com/这样的背景继续背景,但尝试使用我的代码后我无法获得它
continuesBackground =[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"pattern"]];
continuesBackground.frame=CGRectMake(0, 56, 320, 102);
continuesBackground.layer.zPosition=100;
[UIView animateWithDuration:5.0
delay:0.0
options:UIViewAnimationOptionCurveLinear
animations:^{
continuesBackground.transform = CGAffineTransformMakeTranslation(0, 200); }
completion:^(BOOL finish) {
continuesBackground.transform = CGAffineTransformMakeTranslation(200, 0);
}];
怎么做?我需要 nstimer 吗?