title: Floating image in IOS
body: <p>I'm trying to create a floating effect using this code over a UIImageView:</p>
  
  <pre><code>[UIView animateWithDuration:3.0 
                        delay:0.0 
                      options: UIViewAnimationOptionRepeat | UIViewAnimationOptionAutoreverse 
                   animations:^{
                       self.imageView.transform = CGAffineTransformMakeTranslation(10, 0);
                   } 
                   completion:^(BOOL end){    
                  }];
  </code></pre>
  
  <p>This code create a simple effect, moving repeatedly image from left to right by 10 px.</p>
  
  <p>The problem is that moving so slowly, the image has a strange effect and the animation isn't smooth. </p>
  
  <p>Is there some tricks (or settings) to avoid this problem and to obtain a smooth animation ?? </p>