您好,欢迎来到花图问答。
搜索
您的当前位置:首页将 image 图片数组生成 gif 格式图片 - iOS

将 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];

}

Copyright © 2019- huatuowenda.com 版权所有 湘ICP备2023022495号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务