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