Hello I have an image that I\'d like to move up and down (Up 10 pixels and down 10 pixels) so that my image appears to be hovering. How can I do this with simple animation thank
Try this:
CGRect frm_up = imageView.frame; frm_up.origin.y -= 10; [UIView animateWithDuration:0.5 delay:0.0 options:UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeats animations:^{ imageView.frame = frm_up; } completion:NULL ];