2010-08-05 10 views

Répondre

7

Si vous ciblez iOS4 (d'extrait de code de UIView docs):

[UIView animateWithDuration:0.2 
       animations:^{ table.alpha = 0.0; } 
       completion:^(BOOL finished){ [table removeFromSuperview]; }]; 
0

1) insérez votre nouveau sous-vue (index de 0 il est donc caché) sur la pile de visualisation.

[window insertSubview:myNewView atIndex:0]; 

2) animation Ensuite, la vue sur (directement à partir de la documentation) est:

[UIView animateWithDuration:0.2 
     animations:^{ view.alpha = 0.0; } 
     completion:^(BOOL finished){ [view removeFromSuperview]; }] 
Questions connexes