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

Example is broken #25

Open
gerchicov-bp opened this issue Oct 29, 2020 · 1 comment
Open

Example is broken #25

gerchicov-bp opened this issue Oct 29, 2020 · 1 comment

Comments

@gerchicov-bp
Copy link

gerchicov-bp commented Oct 29, 2020

I just run it and try to crop immediately:

- (instancetype)initWithCroppingStyle:(TOCropViewCroppingStyle)style image:(UIImage *)image
{
    NSParameterAssert(image);
@gerchicov-bp
Copy link
Author

It seems you just call the following in the incorrect order:

UIGraphicsGetImageFromCurrentImageContext
UIGraphicsEndImageContext
UIGraphicsBeginImageContextWithOptions

But "begin image context" should be before other calls. The order is broken because you call it with dispatch_async

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

1 participant