Tag: animated gif

防止MFMailComposeViewController缩放animationGIF

我将一个animationGIF附加到一个电子邮件发送与MFMailComposeViewController。 如果GIF的大小足够大,MFMailComposeViewController会询问用户是否要将其调整为较小的大小。 不幸的是,animation将不会被保存在resize的图像。 我该如何禁止MFMailComposeViewController调整图像大小或使其保留animation?

MBProgreeHud与gif图像

我可以使用gif图像而不是默认加载? 我到目前为止使用这个代码,但没有得到任何结果。 任何人都可以提出这个代码有什么问题吗? #import "UIImage+GIF.h" -(void) showLoadingHUD:(NSString *)title { [self hideLoadingHUD]; if(!HUD){ HUD = [MBProgressHUD showHUDAddedTo:self.window animated:YES]; } [HUD setColor:[UIColor clearColor]]; UIImageView *imageViewAnimatedGif = [[UIImageView alloc]init]; imageViewAnimatedGif.image= [UIImage sd_animatedGIFNamed:@"martini_glass"]; HUD.customView = [[UIImageView alloc] initWithImage:imageViewAnimatedGif.image]; CABasicAnimation *rotation; rotation = [CABasicAnimation animationWithKeyPath:@"transform.rotation"]; rotation.fromValue = [NSNumber numberWithFloat:0]; rotation.toValue = [NSNumber numberWithFloat:(2 * M_PI)]; rotation.duration = 0.7f; // Speed […]

通过iOS创build和导出animationgif?

我在iOS应用程序中有一系列用户自定义的图像,这些图像是以简单的,逐帧的翻页样式进行animation的。 我的问题是这样的:有没有办法让用户导出他们的animation作为animationgif? 理想情况下,我想让他们通过电子邮件,社交分享(T / FB)或(最坏的情况下)保存一个animation的gif到他们的文档文件夹通过iTunes检索。 我知道如何将.png保存到照片库中,并且find了将animation录制为QT文件的方法( http://www.cimgf.com/2009/02/03/record-your-core-animation – animation/ ),但我还没有find一个方法,只是踢出一个普通的老animationgif。 我在核心animation或其他地方丢失了什么? 有没有人可以推荐的方法,框架或资源? 对不起,如果这个问题太笼统 – 努力寻找出发点。 任何帮助赞赏。