Move a UIImageView
问题 What is the best way to move an image along an array of dots? 回答1: My recommended approach would be to wrap the UIImage in a UIImageView and use a CAKeyframeAnimation to animate your UIImageView's layer along a path that passes through your three points: UIImage *image = [UIImage imageNamed:@"image.png"]; imageView = [[UIImageView alloc] initWithImage:image]; [mainView addSubview:imageView]; // Remember to remove the image view and release it when done with it CAKeyframeAnimation