SwipeView icon indicating copy to clipboard operation
SwipeView copied to clipboard

Crash when reloadData

Open KevinHM opened this issue 10 years ago • 3 comments

Hi,

I have a swipeview with simpleviews, when I change the swipeview's datasource and reloadData ,if the datasource is nil or be changed three or more times ,I have some crash.

Would you have an idea ? Thanks

KevinHM avatar Jul 28 '14 16:07 KevinHM

I am currently having the same issue, possibly just placing [swipeview reloadData]; in the wrong area not sure though. Any help would be great!

ryanscottmalmoe avatar Jul 31 '14 04:07 ryanscottmalmoe

For me the issue was I wasn't putting reload in viewwilllayoutsubviews.

[self.currentSwipe reloadItemAtIndex:self.currentSwipe.currentItemIndex]; [self.currentSwipe reloadItemAtIndex:self.currentSwipe.currentItemIndex + 1];

Also I used this code to reload the swipeview and it worked wonderfully! I hope this helps you somewhat?

ryanscottmalmoe avatar Aug 04 '14 23:08 ryanscottmalmoe

Thank you very much.

2014-08-05 7:34 GMT+08:00 ryanscottmalmoe [email protected]:

For me the issue was I wasn't putting reload in viewwilllayoutsubviews.

[self.currentSwipe reloadItemAtIndex:self.currentSwipe.currentItemIndex]; [self.currentSwipe reloadItemAtIndex:self.currentSwipe.currentItemIndex + 1];

Also I used this code to reload the swipeview and it worked wonderfully! I hope this helps you somewhat?

— Reply to this email directly or view it on GitHub https://github.com/nicklockwood/SwipeView/issues/127#issuecomment-51132062 .

KevinHM avatar Oct 03 '14 02:10 KevinHM