我正在谷歌搜索过去几个小时的答案。我知道 Apple 和 Facebook 不支持 gif 图像,我想在 iPhone 应用程序中显示和创建 gif 图像,我找到了制作图像序列并提供动画的替代解决方案。我想从这些图像中创建 GIF 图像并在 Facebook 墙上发布。
当我在谷歌上搜索 Facebook 和 Apple 时,它显示了 2 年前的答案。可能现在苹果和Facebook改变了他们的政策,这是否可以在iPhone App上创建GIF图像并发布到Facebook上?
根据这里的堆栈溢出问题, Apple 是否支持 gif 图像?
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
animatedImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"image1.gif"],
[UIImage imageNamed:@"image2.gif"],
[UIImage imageNamed:@"image3.gif"],
[UIImage imageNamed:@"image4.gif"], nil];
animatedImageView.animationDuration = 1.0f;
animatedImageView.animationRepeatCount = 0;
[animatedImageView startAnimating];
[self.view addSubview: animatedImageView];