Closed peterpanduro closed 9 years ago
Does anyone have a solution to this? I'm getting the same bug and its only affecting iOS 8
I don't get this issue. Can you please post a sample screenshot?
Hi,
I am also facing the same issue, Please find the screenshot of it.
Xcode :- 6.1.1 iOS :- 8.1
Please do need full.
Got the same issue for iOS8. Use this code to create snapshot:
(UIView )snapShotFromRowAtMovingIndexPath { FMMoveTableViewCell touchedCell = (FMMoveTableViewCell *)[self cellForRowAtIndexPath:self.movingIndexPath]; touchedCell.selected = NO; touchedCell.highlighted = NO;
UIGraphicsBeginImageContextWithOptions(touchedCell.bounds.size, NO, 0.0); [touchedCell.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage * img = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); UIImageView * imageView =[[UIImageView alloc]initWithImage:img]; imageView.frame = touchedCell.frame; [imageView setBackgroundColor:[UIColor clearColor]]; UIView *snapShot = imageView;
[touchedCell prepareForMove];
return snapShot; }
I'm getting it too. However, my cell is complex so I see the default xib (with the default values) and not the rendered cell. It might help figure out the issue. (I do see the warning described at the original issue)
What does happen in addition, is that the cell isn't popping out on the second time.
UIView *snapshot = [touchedCell snapshotViewAfterScreenUpdates:YES];
the method returns nil (and spits out the discissed warning)
(FMMoveTableView.m ln 337)
When I move the first row, everything works as expected. However, the next time I move a row it is completely white. In xcode I am getting the debug message: "Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates."
I am kind of fixing this by calling reloadData with a slight delay in moveTableView:moveRowFromIndexPath:toIndexPath:
However, if I lift a row and drop it in the same spot, the method above isn't called and the next time I lift a row, it is blank again.