2012-05-29 1 views

risposta

20

È possibile modificare questa impostazione utilizzando l'alternativa animateWithDuration:delay:options:animations:completion:. Invia una maschera UIViewAnimationOption per il parametro opzione. Queste sono le opzioni che vi interessano:

UIViewAnimationOptionCurveEaseInOut 
UIViewAnimationOptionCurveEaseIn 
UIViewAnimationOptionCurveEaseOut 
UIViewAnimationOptionCurveLinear 

La documentazione dice che UIViewAnimationOptionCurveEaseInOut è il valore predefinito.

vedere la documentazione per maggiori dettagli: http://developer.apple.com/library/ios/#documentation/uikit/reference/uiview_class/uiview/uiview.html

+0

Grazie, che aiuta molto! – Fitzy

9

Si dovrebbe usare, che risolverà il vostro problema

[UIView animateWithDuration:duration delay:0 options:UIViewAnimationOptionCurveLinear animations:^{ 
     //code with animation 
    } completion:^(BOOL finished) { 
     //code for completion 
    }];