Well, this is going to make me crazy - any help would be appreciated. I have two images that are part of a timer application. One of them is a needle / hand, and the other is a small hub that looks like a needle base. I use CGAffineTransformMakeRotation to rotate the needle, and the base remains stationary. Problem: There is a 1-2px 'wander' similar to the rotation of the needle, which makes it look like it moves in the center relative to the base. I worked on the base and needle images in PS extensively, and both of them are dead pixels in the center - seriously. My method for turning the arm:
-(IBAction) rotateSteamArrow{
CGAffineTransform rotate = CGAffineTransformMakeRotation( degreesSteam / 180.0 * 3.14159265);
degreesSteam = degreesSteam + 1.5;
if (degreesSteam <= 180) {
[steamNeedle setTransform:rotate];
}
else {
[self handleSteamTimer];
[self toggleButton:(id)timerButton];
[self switchSound];
}
}
source
share