Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompleteBlock executes twice #54

Closed
Casporro opened this issue Dec 21, 2015 · 8 comments
Closed

CompleteBlock executes twice #54

Casporro opened this issue Dec 21, 2015 · 8 comments

Comments

@Casporro
Copy link

Another issue is this method... the code inside block executes twice for each asset...

image.fetchFullScreenImageWithCompleteBlock({
        (image: UIImage?) -> Void in
       //code here executes twice for each asset
})
@Casporro
Copy link
Author

If a want something like this:

image.fetchImageWithSize(CGSizeMake(640, 240), completeBlock: {
    (image: UIImage?) -> Void in
    imageView.image = image
})

image.fetchImageWithSize(CGSizeMake(750, 1334), completeBlock: { //This block executes twice
    (image: UIImage?) -> Void in
    imageView2.image = image //This line executes twice
})

And the second complete block of fetchImage method executes twice...

@Casporro
Copy link
Author

In conclusion... the call (if is only one) or the last call (if are more than one) of any method fetchImage executes twice...

@zhangao0086
Copy link
Owner

Fixed.

@zhangao0086
Copy link
Owner

@Casporro
Thanks ~! 328178e

@sandeepbol
Copy link

This issue is happening again on latest release (3.5.7)

@i0sa
Copy link

i0sa commented Aug 9, 2018

yup still happening

@zhangao0086
Copy link
Owner

@i0sa Could you try the 4.0.0-Beta?

@i0sa
Copy link

i0sa commented Aug 12, 2018

@zhangao0086 yes i did, same thing happening, fetching image with specific sizes excutes twice, once with image with size of (120,80) and once again with original image size

supposedly "fetchImage(with: CGSize()" is supposed to return image with my selected size ? in fact it returns original size,
what's the issue ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants