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

MSSwipeTableCell for me is not working with StackViews inside my cell. Its crashing while generating the image in the method : imageFromView #329

Open
Aviral190694 opened this issue Mar 15, 2019 · 0 comments

Comments

@Aviral190694
Copy link

Aviral190694 commented Mar 15, 2019

With stackview in the cell, I am facing a crash in the said function in class MGSwipeTableCell :
The crash happens when I scroll from left to right to get the button.

  • (UIImage *)imageFromView:(UIView *)view cropSize:(CGSize)cropSize{
    UIGraphicsBeginImageContextWithOptions(cropSize, NO, [[UIScreen mainScreen] scale]);
    [view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return image;
    }

Please let me know what can be the right fix:
image

This is the layout of my cell.

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