2015-02-24 2 views

Répondre

0

pour que vous devez créer un UIView & utilisation comme,

// pour Set Alert Voir

[[self.view superView] bringSubviewToFront: YOurCreatedView]; 

& pour rejeter alerte Voir

[[self.view superView] sendSubviewToBack: YOurCreatedView]; 

Et pour l'animation ci-dessous Utilisez la méthode ..

[UIView animateWithDuration:0.25 animations:^{ 
     //  
    } completion:^(BOOL finished) { 
     // 
    }]; 

ou au-dessous Méthode ..

CATransform3D transform3d = CATransform3DMakeScale(1.15, 1.15, 1.15); 
cell.layer.transform = transform3d; 


//4. Define the final state (After the animation) and commit the animation 
[UIView beginAnimations:@"translation" context:NULL]; 
[UIView setAnimationDuration:0.8]; 

[[self.view superView] bringSubviewToFront: YOurCreatedView]; 


YOurCreatedView.alpha = 1; 
YOurCreatedView.layer.transform = CATransform3DIdentity; 
YOurCreatedView.layer.shadowOffset = CGSizeMake(0, 0); 
[UIView commitAnimations];