1

我将使用链接http://gist.github.com/mayoff/4969104来实现 gif 图像

我添加了 imageIO 和 CoreImagesFrameWorks

包括以下文件

#import <ImageIO/ImageIO.h>
#import <MobileCoreServices/MobileCoreServices.h>

我在实施线路时遇到了一个问题

CGImageDestinationRef destination = CGImageDestinationCreateWithURL((__bridge CFURLRef)fileURL, kUTTypeGIF, kFrameCount, NULL);

错误是:

架构 i386 的未定义符号:

“_kUTTypeGIF”,引用自:

  _makeAnimatedGif in ViewController.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
4

0 回答 0