Animacion willDisplayCell celda

CATransform3D initialTransformation; CGFloat rotationAngleDegrees = 60; // Caculate the radian from the intial CGFloat rotationAngleRadians = rotationAngleDegrees * (M_PI/180); //Set the Intial (x,y) position to start the animation from CGPoint offsetPositioning = CGPointMake(-300, 20); //Define the Identity Matrix CATransform3D transform = CATransform3DIdentity; //Rotate the cell in the anti-clockwise directon to see the animation along the x- axis transform = CATransform3DRotate(transform, rotationAngleRadians, 1.0, 0.0, 0.0); //Add the translation effect to give shifting cell animation transform = CATransform3DTranslate(transform, offsetPositioning.x, offsetPositioning.y, 0.0); initialTransformation = transform; UIView *card = (UITableViewCell * )cell ; card.layer.transform = initialTransformation; //Set the cell to light Transparent card.layer.opacity = 0.8; [UIView animateWithDuration:0.5 animations:^{ card.layer.transform = CATransform3DIdentity; //Make it to original color card.layer.opacity = 1; }];

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.