Skip to content

Demo KLScrollSelect Crashes on IOS 8.1 #13

@johnqiuwan

Description

@johnqiuwan

I am really like this library and planning to use it for my next project.
It works perfectly on IOS7.1.
However, I got the following error message when I run the demo on my Xcode 6(IOS 8.1)

Could any one help on this? Thank you in advance!

2014-11-26 10:10:06.420 KLScrollSelectDemo[12037:567967] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[**NSArrayM objectAtIndex:]: index 2147483647 beyond bounds [0 .. 1]'
* First throw call stack:
(
0 CoreFoundation 0x053d2946 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x01a1fa97 objc_exception_throw + 44
2 CoreFoundation 0x052a8a93 -[__NSArrayM objectAtIndex:] + 243
3 KLScrollSelectDemo 0x0003a620 -[KLViewController scrollSelect:cellForRowAtIndexPath:] + 176
4 KLScrollSelectDemo 0x0003de0a -[KLScrollSelect cellForRowAtIndexPath:withColumn:] + 250
5 KLScrollSelectDemo 0x0003d4be -[KLScrollSelect tableView:cellForRowAtIndexPath:] + 254
6 UIKit 0x003041bc -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 473
7 UIKit 0x0030429e -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 77
8 UIKit 0x002dda6b -[UITableView _updateVisibleCellsNow:isRecursive:] + 3034
9 UIKit 0x002f83d1 -[UITableView layoutSubviews] + 222
10 KLScrollSelectDemo 0x0003ea90 -[KLScrollingColumn layoutSubviews] + 64
11 UIKit 0x0026ddd1 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 608
12 libobjc.A.dylib 0x01a35771 -[NSObject performSelector:withObject:] + 70
13 QuartzCore 0x042a528f -[CALayer layoutSublayers] + 152
14 QuartzCore 0x04299115 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
15 QuartzCore 0x04298f70 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
16 QuartzCore 0x041f73c6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
17 QuartzCore 0x041f878c _ZN2CA11Transaction6commitEv + 392
18 QuartzCore 0x042be799 +[CATransaction flush] + 52
19 UIKit 0x001e0286 -[UIApplication _reportMainSceneUpdateFinished:] + 39
20 UIKit 0x001e1201 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3163
21 UIKit 0x001f97d0 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
22 UIKit 0x001df81f -[UIApplication workspaceDidEndTransaction:] + 155
23 FrontBoardServices 0x08ef69de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
24 FrontBoardServices 0x08ef646f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
25 FrontBoardServices 0x08f08425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
26 CoreFoundation 0x052f61c0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK
+ 16
27 CoreFoundation 0x052ebad3 __CFRunLoopDoBlocks + 195
28 CoreFoundation 0x052eb92b __CFRunLoopRun + 2715
29 CoreFoundation 0x052eabcb CFRunLoopRunSpecific + 443
30 CoreFoundation 0x052ea9fb CFRunLoopRunInMode + 123
31 UIKit 0x001df1e4 -[UIApplication _run] + 571
32 UIKit 0x001e28b6 UIApplicationMain + 1526
33 KLScrollSelectDemo 0x000397ad main + 141
34 libdyld.dylib 0x05e0dac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions