FlorianMielke / FMMoveTableView

Discontinued: Please use iOS 11's Drag & Drop capability instead.
MIT License
623 stars 101 forks source link

Blank rows during move #24

Closed peterpanduro closed 9 years ago

peterpanduro commented 10 years ago

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.

donaldking commented 10 years ago

Does anyone have a solution to this? I'm getting the same bug and its only affecting iOS 8

FlorianMielke commented 10 years ago

I don't get this issue. Can you please post a sample screenshot?

aanchalkalani commented 9 years ago

Hi,

I am also facing the same issue, Please find the screenshot of it.

Xcode :- 6.1.1 iOS :- 8.1

ios simulator screen shot 05-jan-2015 6 05 07 pm

Please do need full.

ArtsiomHainetdzinau commented 9 years ago

Got the same issue for iOS8. Use this code to create snapshot:

boazin commented 9 years ago

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)