views:

149

answers:

1

Hey everyone,

I've added some UIImageViews with png images to my view, using interface builder. Initially they are added off-screen.

Later, I animate them onto the screen with CoreAnimation, like so:

[UIView beginAnimations:@"slide" context:nil];
[UIView setAnimationDuration:0.1f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView setAnimationDelegate:self];
image.frame = CGRectMake(81+1, 390, 150, 80);
[UIView commitAnimations];  

Once they appear onscreen, they look really blurred or fuzzy.

I've heard of this happening before. Does anyone have any idea how to fix it?

A: 

Usually this means that you are positioning the views at fractional pixel values (e.g. 100.5). Make sure you round the coordinates of the position.

camdez
Might not be the issue here since you are using interface builder, but the one time I managed to get blurry images (and confuse myself for quite some time) that's what the issue was.
camdez
The initial position is at whole pixel values, so I'm guessing your referring to the position that I send the imageViews to? I'll try that, Thanks!
Christopher Stamper
Yes, sorry for being unclear. Did that work out for you?
camdez