1
我已經使用下面的代碼片段來製作對象動畫。UIViewAnimationCurveEaseOut,部署彈性效果ios
[UIView animateWithDuration:0.3 delay:0.2
options:(UIViewAnimationCurveEaseOut|UIViewAnimationOptionAllowUserInteraction)
animations:^{[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(faceRight:finished:context:)];
self.viewMiniDetalhe.center = CGPointMake(500, 150);
}completion:^(BOOL finished){
NSLog(@"Move to left done");
}];
但是我想實現一種彈性效果,稱爲easeOutElastic。
ATT,
您對此有何評論?爲什麼在動畫塊中使用'setAnimationDidStopSelector' - 完成塊有什麼問題? – Wain
這個塊確實是對的,我只是想改變動畫的風格。 在抵達時會產生彈性效果 – leedream