CoreAnimation is a pretty simple thing, but:
[UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:30]; MyImageView.frame = CGRectOffset(MyImageView.frame, 100, 0); [UIView commitAnimations];
I want to slowly move ImageView to 100 Pixel veeeery. Therefore, all positioning values ββare doubled. I expect the Layoutsystem to position elements with subpixel accuracy. Butt, when I watch this animation, I see that ImageView "jumps" into a pixel instead of the usual movement. Any ideas to come up with a real subpixel layout? I also tried to set the position with a timer and recalculate the frame values, but the same effect.
Update: In another part of my application, I use the Accelerometer to update the position of the ImageView, and basically calculate the size of the ad space on the graph, and then do:
MyImageView.frame = newCGRect;
I get about 60 updates / s of the Accelerometer and added the LowPass filter from Apple's Accelerometer example.
Is the positioning perfect here?!?!
Why does this not happen with CoreAnimation?
Thanks for any help.
source share