MortimerGoro/MGSwipeTableCell

refreshContentView get an wrong image when right button show

StartingZhou opened this issue · 0 comments

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