I want to make an IBAction that when called makes an image move a certain amount of pixels “fluidly.” I have one now that make the image move 10 pixels to the left but it just kind of teleports there. I want the image to move over, almost like its walking not magically ending up there.
here is what I have:
- (IBAction)moveImageLeft:(id)sender
{
y = y + 10;
myImageView.frame = CGRectMake(x, y, 45, 56);
}
1 Answer