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

Crash - UIImage+Haneke.swift - hnk_imageByScaling [swift3] #112

Open
DamienMartin opened this issue Jul 5, 2017 · 1 comment
Open

Crash - UIImage+Haneke.swift - hnk_imageByScaling [swift3] #112

DamienMartin opened this issue Jul 5, 2017 · 1 comment

Comments

@DamienMartin
Copy link

The crash appear on UIImage+Haneke.swift at line 18 on swift-3 branch :
return resizedImage!

Or resizedImage can be nil => Crash sometimes

@djayhsu
Copy link

djayhsu commented Oct 9, 2017

Make sure that there is an explicit frame set for the UIImageView if you are creating programmatically. This tends to happen for me as well (if I didn't create from storyboard).

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

No branches or pull requests

2 participants