ClickToGIF:NSOperation子类,该子类在动画GIF的第一帧之外构建UIImage

时间:2024-05-19 13:56:16
【文件属性】:

文件名称:ClickToGIF:NSOperation子类,该子类在动画GIF的第一帧之外构建UIImage

文件大小:3.5MB

文件格式:ZIP

更新时间:2024-05-19 13:56:16

Objective-C

下载动画gif的第一帧,而不是完整的东西。 用法示例: func example () { let url = NSBundle. mainBundle (). URLForResource ( " puppy " , withExtension : " gif " ) ! let operation = CQIntroductoryGIFFrameOperation ( URL : url) // note: `completionBlock` is also available from NSOperation, although it // works based off of KVO states, and will take an extra runloop or two to fire. operation. target = self operat


【文件预览】:
ClickToGIF-main
----CQIntroductoryGIFFrameOperationHarness.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(20KB)
--------xcuserdata()
----puppy.gif(3.48MB)
----LICENSE(1KB)
----CQIntroductoryGIFFrameOperationHarness()
--------ViewController.swift(2KB)
--------Assets.xcassets()
--------CQIntroductoryGIFFrameOperation.m(11KB)
--------Base.lproj()
--------AppDelegate.swift(114B)
--------CQIntroductoryGIFFrameOperation.h(1KB)
--------CQIntroductoryGIFFrameOperationHarness-Bridging-Header.h(179B)
--------Info.plist(1KB)
----CQIntroductoryGIFFrameOperationHarnessTests()
--------Info.plist(733B)
--------CQIntroductoryGIFFrameOperationHarnessTests.swift(1KB)
----AnimatedGIFPlayback()
--------UIImage+animatedGIF.h(2KB)
--------UIImage+animatedGIF.COPYRIGHT(6KB)
--------UIImage+animatedGIF.m(5KB)
----README.md(1KB)

网友评论