Intento implementar la animación: cuando ingresa a la Galería de iPhone, presione la imagen, verá la imagen en pantalla completa. A continuación puede ver la barra de herramientas con el botón de papelera. Cuando presiona este botón, la imagen se borrará con la animación. Intento implementar esto, pero no sé cómo implementar la transformación de imagen, uso de apple. Esta es la mejor, lo que podía hacer:Animación, como cuando elimina desde la Galería de fotos de iPhone
[UIView transitionWithView:self.view duration:0.1 options:UIViewAnimationOptionTransitionCrossDissolve animations:^{
[self.view addSubview:scrollImageView];
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.75, frame.size.height * 0.75);
frame.origin = CGPointMake((size.width - frame.size.width)/2, (size.height - frame.size.height)/2);
scrollImageView.frame = frame;
} completion:^(BOOL finished) {
[UIView animateWithDuration:0.3 delay:0 options:UIViewAnimationOptionAllowUserInteraction animations:^{
CGRect frame = scrollImageView.frame;
frame.size = CGSizeMake(frame.size.width * 0.05, frame.size.height * 0.05);
frame.origin = CGPointMake(size.width, size.height);
scrollImageView.frame = frame;
CGAffineTransform transform = scrollImageView.transform;
CGAffineTransform rotatedTransform = CGAffineTransformRotate(transform, 45 * 3.14/180);
scrollImageView.transform = rotatedTransform;
} completion:^(BOOL finished) {
[scrollImageView removeFromSuperview];
}];
}];
}];
gracias de antemano.
actualización Según entiendo, no puedo hacer esta animación con Core-animación, pero puede que alguien me puede aconsejar la animación más simular a iPhone Galería de animación, pero sin usar OpenGL?
¿Puede aconsejarme la animación más simular a la animación de la galería de iPhone, pero sin usar OpenGL? –
Anteriormente hice una [publicación de blog] (http://ronnqvist.tumblr.com/post/23234805389/unobtrusive-hints-of-joy) tratando de replicar la animación "Abrir en segundo plano" de Safari. Es bastante similar, pero al mismo tiempo muy diferente. Probablemente puedas aprender algo de él y adaptar las partes que necesitas para tu animación. –