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

refreshContentView get an wrong image when right button show #340

Open
StartingZhou opened this issue Oct 8, 2019 · 0 comments
Open

refreshContentView get an wrong image when right button show #340

StartingZhou opened this issue Oct 8, 2019 · 0 comments

Comments

@StartingZhou
Copy link

StartingZhou commented Oct 8, 2019

Description

  1. Swap a cell to show right button
  2. Use refreshContentView method to refresh this cell frequently

Result
The cell get wrong image, the wrong image without right button

Try
When I change the method - (UIImage *)imageFromView:(UIView *)view cropSize:(CGSize)cropSize and use [view.layer renderInContext:UIGraphicsGetCurrentContext()]; , it become normal.

Enviroment

  1. XCode 11
  2. iOS 13、iOS 10
  3. iPhone 5、iPhone 11
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