我的应用程序在 iphone 模拟器中运行没有问题,但是当我在 iphone 4 (ios 5.1) 上运行它时,一些视图的动画不流畅,有时会动摇。我使用下面的代码,这可能是什么问题?
- (void)moveAnimatedToPoint:(CGPoint)point after:(float)delay during:(CGFloat)duration willRemove:(BOOL)remove
{
[UIView animateWithDuration:duration
delay:delay
options:UIViewAnimationCurveEaseOut
animations:^{
self.frame = CGRectMake(point.x, point.y,
CGRectGetWidth(self.frame), CGRectGetHeight(self.frame));
} completion:^(BOOL finished) {
if (finished) {
if (remove)
[self removeFromSuperview];
else {
isHided = CGRectContainsRect(self.superview.frame, self.frame) ? NO : YES;
}
}
}];
}