refreshContentView get an wrong image when right button show
StartingZhou opened this issue · 0 comments
StartingZhou commented
Description
- Swap a cell to show right button
- 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
- XCode 11
- iOS 13、iOS 10
- iPhone 5、iPhone 11