MortimerGoro / MGSwipeTableCell

An easy to use UITableViewCell subclass that allows to display swippable buttons with a variety of transitions.
MIT License
6.97k stars 1.08k forks source link

refreshContentView get an wrong image when right button show #340

Open StartingZhou opened 4 years ago

StartingZhou commented 4 years ago

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