我已经花了几个小时在谷歌上搜索答案。我知道苹果和Facebook不支持gif图片,我想在iPhone应用程序中显示和创建gif图像,我找到了另一种解决方案,即制作图像序列并添加动画。我想从这些图像创建GIF图像并发布到Facebook墙上。
当我在谷歌上搜索有关Facebook和Apple的信息时,它显示了两年前的答案。也许现在苹果和Facebook已经改变了政策,是否可能在iPhone应用程序上创建GIF图像并发布到Facebook上?
根据这个Stack Overflow问题(here),苹果是否支持gif图像?
当我在谷歌上搜索有关Facebook和Apple的信息时,它显示了两年前的答案。也许现在苹果和Facebook已经改变了政策,是否可能在iPhone应用程序上创建GIF图像并发布到Facebook上?
根据这个Stack Overflow问题(here),苹果是否支持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];