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 on IOS 11 #30

Open
talk2cerlin opened this issue Nov 20, 2017 · 1 comment
Open

Crash on IOS 11 #30

talk2cerlin opened this issue Nov 20, 2017 · 1 comment

Comments

@talk2cerlin
Copy link

talk2cerlin commented Nov 20, 2017

I have a UITableView which has list of users with their profile pic. I used image?.roundCornersToCircle() to round the image since the height and width of `UIImageView were not same.

But in IOS 11, it crashes in this method UIImage.applyAlpha() -> UIImage?.

Crashlytics suggests that let imageWithAlpha = UIImage(cgImage: (offscreenContext?.makeImage()!)!) line caused the crash.

I have attached the image which was creating this issue below. (The image is in white color)

01ltxi70aajdjesfoodnh3lawsmrimucocmrokvl

@HelloiWorld
Copy link

suggest don't use "!" anytime
I remove all the "!" in my project

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