将 image 图片数组生成 gif 格式图片 - iOS

- (void)createGif {

UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:CGRectMake(50,80, 550/2, 200)];      

animatedImageView.animationImages =@[[UIImage imageNamed:@"image0"],

[UIImage imageNamed:@"image1"],

[UIImage imageNamed:@"image2"]];


animatedImageView.animationDuration = 1.0f;

animatedImageView.animationRepeatCount = 0;

[self.view addSubview: animatedImageView];

[animatedImageView startAnimating];

}

你可能感兴趣的:(将 image 图片数组生成 gif 格式图片 - iOS)