FSPagerView icon indicating copy to clipboard operation
FSPagerView copied to clipboard

How to implement scrollViewWillBeginDecelerating

Open Ankush-Redapple opened this issue 4 years ago • 0 comments

I have added delegate into the class. When the app runs, it getting crash. Please check the issue.

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'attempt to scroll to invalid index path: <NSIndexPath: 0x6000032cd800> {length = 2, path = 18446744073709551615 - 100}' *** First throw call stack: ( 0 CoreFoundation 0x00000001086526fb __exceptionPreprocess + 331 1 libobjc.A.dylib 0x000000010bf7dac5 objc_exception_throw + 48 2 CoreFoundation 0x0000000108652555 +[NSException raise:format:] + 197 3 UIKitCore 0x00000001153d5f93 -[UICollectionView _contentOffsetForScrollingToItemAtIndexPath:atScrollPosition:] + 212 4 UIKitCore 0x00000001153d686b -[UICollectionView _scrollToItemAtIndexPath:atScrollPosition:animated:] + 70 5 UIKitCore 0x00000001153bf36f -[UICollectionView selectItemAtIndexPath:animated:scrollPosition:notifyDelegate:] + 537 6 UIKitCore 0x00000001153bf4b2 -[UICollectionView selectItemAtIndexPath:animated:scrollPosition:] + 128 7 FSPagerView 0x0000000109903f79 $s11FSPagerViewAAC10selectItem2at8animatedySi_SbtF + 665 8 GameRec 0x0000000107a3e6be $s7GameRec18HomeViewControllerC12reloadScreen33_FED695B100E4D31A2DB147A7651D77A5LLyyF + 7886 9 GameRec 0x0000000107a3c7db $s7GameRec18HomeViewControllerC17fetchRecentVideos33_FED695B100E4D31A2DB147A7651D77A5LLyyFyycfU_yycfU + 27 10 GameRec 0x0000000107a4080d $s7GameRec18HomeViewControllerC17fetchRecentVideos33_FED695B100E4D31A2DB147A7651D77A5LLyyFyycfU_yycfU_TA + 13 11 GameRec 0x0000000107a0f96d $sIeg_IeyB_TR + 45 12 libdispatch.dylib 0x000000010dc73d7f _dispatch_call_block_and_release + 12 13 libdispatch.dylib 0x000000010dc74db5 _dispatch_client_callout + 8 14 libdispatch.dylib 0x000000010dc82080 _dispatch_main_queue_callback_4CF + 1540 15 CoreFoundation 0x00000001085b98a9 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 16 CoreFoundation 0x00000001085b3f56 __CFRunLoopRun + 2310 17 CoreFoundation 0x00000001085b3302 CFRunLoopRunSpecific + 626 18 GraphicsServices 0x0000000111ce82fe GSEventRunModal + 65 19 UIKitCore 0x0000000115b4cba2 UIApplicationMain + 140 20 GameRec 0x0000000107a5161b main + 75 21 libdyld.dylib 0x000000010dce9541 start + 1 )

Ankush-Redapple avatar Sep 27 '19 11:09 Ankush-Redapple