guowilling / SRCarouselView

A carousel view that only uses two UIImageView to achieve infinite carousel.
MIT License
55 stars 11 forks source link

multiple SRinfinitecarouselview with web images crashes with index out of bounds #2

Open dragab opened 7 years ago

dragab commented 7 years ago

Hi ,

i tried to use two SRinfiniteCarouselView in the same viewcontroller , they dont have the same size of arrays , it works fine in simulator , but when debuging using a mobile , i get exception index out of bounds .

the error is on the following function

guowilling commented 7 years ago

Sorry, i was busy with something recently. The reason is I should not use Singleton for SRImageManager, I have fixed it. Thanks for finding the bug.