I’m working aon an iOS App which uses Shinobicharts inside UIColectionViewCells. These cells can look very different, driven by the data provided.
For example the Chart can have one or two line sieries oder one line and one colum series or use a pie chart. All cells are self sizng with autolayout.
What I do is make a configure call inside of for every cell.
-(UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath
So my CollectionViewCell classes know how to configure and fulfill the SChartDatasource protocol.
Everything wokrs fine until cells get reused. Inside cell classes overwroter prepareForReuse and do this:
The new cell data is set at that moment.
Bute what happens is the sometime (only with fast scolling) the reused cell is totaly broken. The data draw by ShinobiChart is completly wrong - not reused or something I can explain. If that issue happens it will reproduce on every redrawing.
What am I doing wrong? Is something special about reusing UICollectionViewCells? Can I reset ShinobiChartView fully?
Thanks for help,