nicklockwood / iCarousel

A simple, highly customisable, data-driven 3D carousel for iOS and Mac OS
http://www.charcoaldesign.co.uk/source/cocoa#icarousel
Other
12k stars 2.58k forks source link

Issue with scroll performance after appearing above system elements. #592

Closed SonnyBlack closed 9 years ago

SonnyBlack commented 9 years ago

Good day Nick! I have strange issue using iCarousel. I have about only 10 elements, create it and it works fine. (Smooth scroll). But sometimes I get UIAlertView above iCarousel (for example - App lost enternet connection or some another notification for user). And after that alert, iCarousel performance downs on scroll. Can you please give me advice what can happen? Thanks

nicklockwood commented 9 years ago

Perhaps when the carousel enters background and re-enters foreground you are creating a new copy of the carousel on top of the old one?

That might happen if you are creating your carousel view inside viewDidAppear, or something like that.

SonnyBlack commented 9 years ago

Hello again! I check your idea, but no - I create carousel only one time. But it seems like I fixed this issue. In my case Carousel element lays on SKView. This view contain another element - SKScene. I noticed that my issue also appear after performing some actions in SKScene. So I tried disable in some properties of SKView - in result after disabling "paused" - Carousel smooth scrolls even after appearing UIAlertView. Thanks for your help!