Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Crash when gif from document directory. #28

Closed
AlbertSwift opened this issue Apr 7, 2016 · 1 comment
Closed

Crash when gif from document directory. #28

AlbertSwift opened this issue Apr 7, 2016 · 1 comment

Comments

@AlbertSwift
Copy link

i have download the list of gif from server into my document directory.
now when i m going to display it crash.

mycode:
let imageData = NSData(contentsOfURL: NSURL(fileURLWithPath: dataPath))
let advTimeGif = UIImage.gifWithData(imageData!)

Crash at here::
var delayObject: AnyObject = unsafeBitCast(
CFDictionaryGetValue(gifProperties,
unsafeAddressOf(kCGImagePropertyGIFUnclampedDelayTime)),
AnyObject.self)

@bahlo
Copy link
Member

bahlo commented Oct 23, 2016

Are you still having this issue?
If yes, can you try the new v1.6.1 version and check if the problem persists?

We removed the unsafeAddressOf call, so hopefully this bug is fixed. If not, feel free to re-open! 🍻

@bahlo bahlo closed this as completed Oct 23, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants