我正在使用该UIView animateWithDuration:delay:options:animations:completion:
方法,但永远不会调用完成方法。这是我的代码:
[UIView animateWithDuration:1 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^
{
//random lines of code
}completion:^(BOOL finished){
if (finished)
{
NSLog(@"FINISHED");
}
}];
编辑:当我注释掉我的行时,animations:
它会被调用???!!!
这些是行:
CGFloat objectY = object.frame.origin.y;
objectY += speed;
object.frame = CGRectMake(object.frame.origin.x, objectY, 75, 75);