SwipeView
SwipeView copied to clipboard
Crash when reloadData
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
I am currently having the same issue, possibly just placing [swipeview reloadData]; in the wrong area not sure though. Any help would be great!
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?
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 .