Setting UISplitViewController viewControllers Property Causes SIGABRT in iOS 8 - objective-c

In our app we call a method that adds two navigation controllers to a UISplitViewController via the viewControllers property. We do this in multiple places in our app, but this one place is causing a SIGABRT and I cannot figure out why. The UISplitViewController.viewControllers already has two view controllers in the NSArray at this point. The error happens only when the device is in portrait and only on iOS 8.
The error that comes with the SIGABRT is:
*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 11 beyond bounds [0 .. 10]'
The line of code that causes the error is
self.splitViewController.viewControllers = #[mainNav.navigationController, genericNavVC];
It has to be something with the property because it doesn't seem to matter what I try to assign to it (nil, 2 blank UINavigationControllers, etc.). I've also tried using the setViewControllers method but it still errs.
Does anyone know what might be causing this and is there something we could use as a workaround?
-- Extra Info --
NSLog of the exception callStackSymbols:
(
0 CoreFoundation 0x24ce6d7f <redacted> + 150
1 libobjc.A.dylib 0x3285dc77 objc_exception_throw + 38
2 CoreFoundation 0x24bfafb7 <redacted> + 230
3 myApp 0x00212ef7 -[DocsToSign objectAtIndex:] + 62
4 myApp 0x001436d3 -[DocsToSignListViewController tableView:cellForRowAtIndexPath:] + 966
5 UIKit 0x2845126d <redacted> + 476
6 UIKit 0x2845132f <redacted> + 54
7 UIKit 0x28446a51 <redacted> + 2276
8 UIKit 0x2825ec1b <redacted> + 186
9 UIKit 0x28188c1f <redacted> + 514
10 QuartzCore 0x27bb3f65 <redacted> + 136
11 QuartzCore 0x27baf951 <redacted> + 360
12 UIKit 0x2819b367 <redacted> + 138
13 UIKit 0x282358ed <redacted> + 872
14 UIKit 0x2836643d <redacted> + 284
15 UIKit 0x28232803 <redacted> + 78
16 UIKit 0x28480949 <redacted> + 536
17 UIKit 0x286474cd <redacted> + 168
18 UIKit 0x28647283 <redacted> + 138
19 UIKit 0x28474487 <redacted> + 350
20 UIKit 0x28636d13 <redacted> + 170
21 myApp 0x000eb5db -[AppDelegate_iPad ClearDetailView] + 1446
22 myApp 0x001478e9 -[DocsToSignListViewController SignDocsComplete:withResponseData:] + 1564
23 myApp 0x000fbae3 -[WCFHandler requestCompleted] + 846
24 myApp 0x000fc353 -[WCFHandler connectionDidFinishLoading:] + 86
25 CFNetwork 0x24840045 <redacted> + 56
26 CFNetwork 0x2483ffff <redacted> + 182
27 CFNetwork 0x248400f1 <redacted> + 36
28 CFNetwork 0x2475527b <redacted> + 78
29 CFNetwork 0x247f18c5 <redacted> + 60
30 CFNetwork 0x24746189 <redacted> + 60
31 CoreFoundation 0x24bf83f1 CFArrayApplyFunction + 36
32 CFNetwork 0x24746043 <redacted> + 182
33 CFNetwork 0x24745f09 <redacted> + 216
34 CFNetwork 0x24745da5 <redacted> + 48
35 CoreFoundation 0x24cad5e7 <redacted> + 14
36 CoreFoundation 0x24cac9fb <redacted> + 222
37 CoreFoundation 0x24cab079 <redacted> + 768
38 CoreFoundation 0x24bf8981 CFRunLoopRunSpecific + 476
39 CoreFoundation 0x24bf8793 CFRunLoopRunInMode + 106
40 GraphicsServices 0x2bfa8051 GSEventRunModal + 136
41 UIKit 0x281ea981 UIApplicationMain + 1440
42 myApp 0x000e8a09 main + 48
43 libdyld.dylib 0x32df9aaf <redacted> + 2
)
And this is from calling thread backtrace at exception time:
* thread #1: tid = 0x2259, 0x000eb71c myApp`-[AppDelegate_iPad ClearDetailView](self=0x15571b80, _cmd=0x002b2ecd) + 1768 at AppDelegate_iPad.m:332, queue = 'com.apple.main-thread', stop reason = step over
* frame #0: 0x000eb71c myApp`-[AppDelegate_iPad ClearDetailView](self=0x15571b80, _cmd=0x002b2ecd) + 1768 at AppDelegate_iPad.m:332
frame #1: 0x001478e8 myApp`-[DocsToSignListViewController SignDocsComplete:withResponseData:](self=0x155b7820, _cmd=0x002b968f, handler=0x15511f10, responseData=0x1558ef90) + 1564 at DocsToSignListViewController.m:690
frame #2: 0x000fbae2 myApp`-[WCFHandler requestCompleted](self=0x1550b040, _cmd=0x2bf7076d) + 846 at WCFHandler.m:161
frame #3: 0x000fc352 myApp`-[WCFHandler connectionDidFinishLoading:](self=0x1550b040, _cmd=0x2898e975, connection=0x15567af0) + 86 at WCFHandler.m:243
frame #4: 0x24840044 CFNetwork`__65-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:]_block_invoke + 56
frame #5: 0x2483fffe CFNetwork`-[NSURLConnectionInternal _withConnectionAndDelegate:onlyActive:] + 182
frame #6: 0x248400f0 CFNetwork`-[NSURLConnectionInternal _withActiveConnectionAndDelegate:] + 36
frame #7: 0x2475527a CFNetwork`___ZN27URLConnectionClient_Classic26_delegate_didFinishLoadingEU13block_pointerFvvE_block_invoke + 78
frame #8: 0x247f18c4 CFNetwork`___ZN27URLConnectionClient_Classic18_withDelegateAsyncEPKcU13block_pointerFvP16_CFURLConnectionPK33CFURLConnectionClientCurrent_VMaxE_block_invoke_2 + 60
frame #9: 0x24746188 CFNetwork`RunloopBlockContext::_invoke_block(void const*, void*) + 60
frame #10: 0x24bf83f0 CoreFoundation`CFArrayApplyFunction + 36
frame #11: 0x24746042 CFNetwork`RunloopBlockContext::perform() + 182
frame #12: 0x24745f08 CFNetwork`MultiplexerSource::perform() + 216
frame #13: 0x24745da4 CFNetwork`MultiplexerSource::_perform(void*) + 48
frame #14: 0x24cad5e6 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
frame #15: 0x24cac9fa CoreFoundation`__CFRunLoopDoSources0 + 222
frame #16: 0x24cab078 CoreFoundation`__CFRunLoopRun + 768
frame #17: 0x24bf8980 CoreFoundation`CFRunLoopRunSpecific + 476
frame #18: 0x24bf8792 CoreFoundation`CFRunLoopRunInMode + 106
frame #19: 0x2bfa8050 GraphicsServices`GSEventRunModal + 136
frame #20: 0x281ea980 UIKit`UIApplicationMain + 1440
frame #21: 0x000e8a08 myApp`main(argc=1, argv=0x0054cafc) + 48 at main.m:14

Related

Uncaught exception [ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key btnAvatar

2017-04-13 12:16:36.606 Boardmeeting[4601:1375127] Uncaught exception [<UIViewController 0x7f988fe32750> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key btnAvatar.
2017-04-13 12:16:36.611 Boardmeeting[4601:1375127] Stack trace: (
0 CoreFoundation 0x000000010f555d4b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010efbe21e objc_exception_throw + 48
2 CoreFoundation 0x000000010f555c99 -[NSException raise] + 9
3 Foundation 0x000000010d25e9df -[NSObject(NSKeyValueCoding) setValue:forKey:] + 291
4 UIKit 0x000000010d90d293 -[UIViewController setValue:forKey:] + 88
5 UIKit 0x000000010db8179e -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010f4fa9e0 -[NSArray makeObjectsPerformSelector:] + 256
7 UIKit 0x000000010db80122 -[UINib instantiateWithOwner:options:] + 1867
8 UIKit 0x000000010d9139c5 -[UIViewController _loadViewFromNibNamed:bundle:] + 386
9 UIKit 0x000000010d9142e7 -[UIViewController loadView] + 177
10 UIKit 0x000000010d91461c -[UIViewController loadViewIfRequired] + 201
11 UIKit 0x000000010d914e70 -[UIViewController view] + 27
12 UIKit 0x000000010d9734f3 -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 483
13 UIKit 0x000000010d972935 -[UITabBarController transitionFromViewController:toViewController:] + 59
14 UIKit 0x000000010d96e7f6 -[UITabBarController _setSelectedViewController:] + 365
15 UIKit 0x000000010d96e57b -[UITabBarController setSelectedIndex:] + 131
16 Boardmeeting 0x0000000109746bce -[LoginViewController prepareForSegue:sender:] + 350
17 UIKit 0x000000010df4817f -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 353
18 UIKit 0x000000010df47fed -[UIStoryboardSegueTemplate _perform:] + 82
19 UIKit 0x000000010d917a1f -[UIViewController performSegueWithIdentifier:sender:] + 99
20 Boardmeeting 0x00000001097470ee -[LoginViewController requestFinished:] + 446
21 Boardmeeting 0x00000001096fbe9e -[ASIHTTPRequest reportFinished] + 142
22 Foundation 0x000000010d27ee9e __NSThreadPerformPerform + 326
23 CoreFoundation 0x000000010f4fa761 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x000000010f4df98c __CFRunLoopDoSources0 + 556
25 CoreFoundation 0x000000010f4dee76 __CFRunLoopRun + 918
26 CoreFoundation 0x000000010f4de884 CFRunLoopRunSpecific + 420
27 GraphicsServices 0x0000000115158a6f GSEventRunModal + 161
28 UIKit 0x000000010d772c68 UIApplicationMain + 159
29 Boardmeeting 0x0000000109758eae main + 142
30 libdyld.dylib 0x000000011067b68d start + 1
)
This usually happens when you remove an IBOutlet from a class, but you don't remove the outlet link in the storyboard.
In your case it's btnAvatar: could you have removed this from your class/controller but you left it there on the storyboard?

UICollectionView with CSStickyHeaderFlowLayout crashes on scroll up and down

I created a UICollectionView using CSStickyHeaderFlowLayout, because i wanted to have separate Header for UICollectionView and its sections. It is showing data successfully, but when i scroll up or down and as soon as it touches to top or bottom boundary it crashes, giving following error, I simply want separate Headers for collection view and its sections like we have in UITableView. If someone can help resolve this issue or point some alternative.
2016-12-06 11:50:51.881 TestStickyHeader[899:18365] * Assertion failure in -[UICollectionViewData validateLayoutInRect:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3600.5.2/UICollectionViewData.m:445
2016-12-06 11:50:51.929 TestStickyHeader[899:18365] * Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'layout attributes for supplementary item at index path ( {length = 2, path = 9 - 0}) changed from indexPath: {9, 0} zIndex: 1024 valid: YES kind: UICollectionElementKindSectionHeader to indexPath: {9, 0} zIndex: 1024 valid: YES kind: UICollectionElementKindSectionHeader without invalidating the layout'
*** First throw call stack:
(
0 CoreFoundation 0x0000000104cbb34b exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010471c21e objc_exception_throw + 48
2 CoreFoundation 0x0000000104cbf442 +[NSException raise:format:arguments:] + 98
3 Foundation 0x00000001042b2e4d -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 195
4 UIKit 0x00000001063f5c3b __45-[UICollectionViewData validateLayoutInRect:]_block_invoke + 1436
5 UIKit 0x00000001063f5093 -[UICollectionViewData validateLayoutInRect:] + 2984
6 UIKit 0x00000001063f835e -[UICollectionViewData layoutAttributesForCellsInRect:validateLayout:] + 170
7 UIKit 0x0000000106392909 -[UICollectionView _computePrefetchCandidatesForVisibleBounds:futureVisibleBounds:prefetchVector:notifyDelegateIfNeeded:] + 134
8 UIKit 0x0000000106392877 -[UICollectionView _computePrefetchCandidatesForVelocity:notifyDelegateIfNeeded:] + 214
9 UIKit 0x000000010639278d -[UICollectionView _prefetchItemsForVelocity:maxItemsToPrefetch:invalidateCandidatesOnDirectionChanges:] + 934
10 UIKit 0x000000010639baa7 -[UICollectionView layoutSubviews] + 717
11 UIKit 0x0000000105b12f50 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1237
12 QuartzCore 0x00000001058c5cc4 -[CALayer layoutSublayers] + 146
13 QuartzCore 0x00000001058b9788 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
14 QuartzCore 0x00000001058b9606 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
15 QuartzCore 0x0000000105847680 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 280
16 QuartzCore 0x0000000105874767 _ZN2CA11Transaction6commitEv + 475
17 QuartzCore 0x00000001057cfb97 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 611
18 CoreFoundation 0x0000000104c4d964 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 20
19 CoreFoundation 0x0000000104c4d5f3 __CFRunLoopDoTimer + 1075
20 CoreFoundation 0x0000000104c4d17a __CFRunLoopDoTimers + 250
21 CoreFoundation 0x0000000104c44f01 __CFRunLoopRun + 2065
22 CoreFoundation 0x0000000104c44494 CFRunLoopRunSpecific + 420
23 GraphicsServices 0x0000000109e38a6f GSEventRunModal + 161
24 UIKit 0x0000000105a4e964 UIApplicationMain + 159
25 TestStickyHeader 0x0000000103d9411f main + 111
26 libdyld.dylib 0x000000010b44c68d start + 1
27 ??? 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

Change Picker Rows after window is loaded

I'm trying to change the picker rows after the window was loaded. The picker was created in the xml file but when a row was attempted to be added to it an error is thrown (see below).
How do i add the picker rows once the picker is already added?
view.xml
<!-- other parent views above -->
<Picker id="languagePicker" selectionIndicator="true" useSpinner="true"
width="Ti.Platform.displayCaps.platformWidth" right="0">
</Picker>
view.js
var languages = db.execute("SELECT * FROM language");
while(languages.isValidRow()){
$.languagePicker.add(Ti.UI.createPickerRow({title:languages.fieldByName('language')}));
languages.next();
}
Error Log:
[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
Reason:
-[NSNull rangeOfCharacterFromSet:]: unrecognized selector sent to instance 0x109f28af0
Stack trace:
0 CoreFoundation 0x0000000109d03e4d exceptionPreprocess + 141
1 libobjc.A.dylib 0x00000001096d5deb objc_exception_throw + 48
2 CoreFoundation 0x0000000109d0c48d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000109c5990a ___forwarding_ + 970
4 CoreFoundation 0x0000000109c594b8 _CF_forwarding_prep_0 + 120
5 UIKit 0x0000000106466d9c -[UILabel _contentInsetsFromFonts] + 137
6 UIKit 0x0000000106782a84 -[_UILabelLayer updateContentInsets] + 127
7 UIKit 0x0000000106782b73 -[_UILabelLayer updateContentLayerSize] + 50
8 UIKit 0x0000000106782ce1 -[_UILabelLayer layoutSublayers] + 25
9 QuartzCore 0x000000010875fe70 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 366
10 QuartzCore 0x000000010875fcee _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
11 QuartzCore 0x0000000108754475 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 277
12 QuartzCore 0x0000000108781c0a _ZN2CA11Transaction6commitEv + 486
13 QuartzCore 0x000000010878237c _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
14 CoreFoundation 0x0000000109c2f367 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
15 CoreFoundation 0x0000000109c2f2d7 __CFRunLoopDoObservers + 391
16 CoreFoundation 0x0000000109c24f2b __CFRunLoopRun + 1147
17 CoreFoundation 0x0000000109c24828 CFRunLoopRunSpecific + 488
18 GraphicsServices 0x000000010b04bad2 GSEventRunModal + 161
19 UIKit 0x00000001061f9610 UIApplicationMain + 171
20 ISTQB 0x0000000104320de6 main + 310
21 libdyld.dylib 0x000000010a95192d start + 1
The picker.add() method expects an array of PickerRow objects. This works in my app:
var data = [],
picker = Ti.UI.createPicker();
data.push(
Ti.UI.createPickerRow({
title: 'Row 1'
}));
data.push(
Ti.UI.createPickerRow({
title: 'Row2'
}));
picker.add(data);
See http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.Picker-method-add

Tracing cause of NSRangeException - exception breakpoint always returns to `int main(int argc, char * argv[])`

I've been stuck on this all day, and struggling to identify the source of a NSRangeException crash.
The app builds fine, but in the process of loading the first scene it throws:
2015-05-01 17:21:48.606 AppName[3707:447852] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM objectAtIndex:]: index 4 beyond bounds [0 .. 3]'
The full stack trace is:
*** First throw call stack:
(
0 CoreFoundation 0x0000000111d22c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000111584bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000111c0c093 -[__NSArrayM objectAtIndex:] + 227
3 UIKit 0x000000010f311881 _UIViewTopDownSubtreeTraversal + 193
4 UIKit 0x000000010f932fa3 -[UIView(UIConstraintBasedLayout_EngineDelegate) _invalidateSystemLayoutSizeFittingSizeAtEngineDelegateLevel] + 141
5 Foundation 0x000000010e931d6f -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 915
6 Foundation 0x000000010eabc1e8 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 275
7 Foundation 0x000000010e92649a -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 220
8 UIKit 0x000000010f92fa34 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 474
9 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
10 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
11 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
12 UIKit 0x000000010f92f933 __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke_2 + 217
13 Foundation 0x000000010e9341be -[NSISEngine withBehaviors:performModifications:] + 155
14 UIKit 0x000000010f92f83a __57-[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:]_block_invoke + 452
15 UIKit 0x000000010f92f64d -[UIView(AdditionalLayoutSupport) _switchToLayoutEngine:] + 197
16 UIKit 0x000000010f92f2de -[UIView(AdditionalLayoutSupport) _initializeHostedLayoutEngine] + 404
17 UIKit 0x000000010f92426e -[UIView(UIConstraintBasedLayout) _layoutEngine_windowDidChange] + 126
18 UIKit 0x000000010f32f561 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 209
19 UIKit 0x000000010f32f74a -[UIView(Internal) _didMoveFromWindow:toWindow:] + 698
20 UIKit 0x000000010f327ecf __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 125
21 UIKit 0x000000010f327e43 -[UIView(Hierarchy) _postMovedFromSuperview:] + 437
22 UIKit 0x000000010f331f48 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1660
23 UIKit 0x000000010f61884c -[UINavigationTransitionView transition:fromView:toView:] + 479
24 UIKit 0x000000010f4161b0 -[UINavigationController _startTransition:fromViewController:toViewController:] + 2984
25 UIKit 0x000000010f416448 -[UINavigationController _startDeferredTransitionIfNeeded:] + 523
26 UIKit 0x000000010f416f0e -[UINavigationController __viewWillLayoutSubviews] + 43
27 UIKit 0x000000010f561715 -[UILayoutContainerView layoutSubviews] + 202
28 UIKit 0x000000010f334a2b -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 536
29 QuartzCore 0x000000010eff4ec2 -[CALayer layoutSublayers] + 146
30 QuartzCore 0x000000010efe96d6 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
31 QuartzCore 0x000000010efe9546 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 24
32 QuartzCore 0x000000010ef55886 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 242
33 QuartzCore 0x000000010ef56a3a _ZN2CA11Transaction6commitEv + 462
34 UIKit 0x000000010f2b2a2d -[UIApplication _reportMainSceneUpdateFinished:] + 44
35 UIKit 0x000000010f2b36f1 -[UIApplication _runWithMainScene:transitionContext:completion:] + 2648
36 UIKit 0x000000010f2b20d5 -[UIApplication workspaceDidEndTransaction:] + 179
37 FrontBoardServices 0x00000001158955e5 __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 21
38 CoreFoundation 0x0000000111c5641c __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 12
39 CoreFoundation 0x0000000111c4c165 __CFRunLoopDoBlocks + 341
40 CoreFoundation 0x0000000111c4b923 __CFRunLoopRun + 851
41 CoreFoundation 0x0000000111c4b366 CFRunLoopRunSpecific + 470
42 UIKit 0x000000010f2b1b42 -[UIApplication _run] + 413
43 UIKit 0x000000010f2b4900 UIApplicationMain + 1282
44 My360 0x000000010dcf26ff main + 111
45 libdyld.dylib 0x00000001127f5145 start + 1
46 ??? 0x0000000000000001 0x0 + 1
)
It's a large app, and I cannot identify which objectAtIndex is causing the issue.
After looking at similar issues, I added an Exception breakpoint:
However the breakpoint just keeps taking me back to the main.m file:
int main(int argc, char * argv[]) {
#autoreleasepool {
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
Can anyone point me towards how I can identify the line that is causing this exception?
Thanks!
Edit:
When I click on the My360 icon at the top of the debugging console, it shows this:

when scrolling data in tableview its crashing

When i am moving the data from tableview cell by one its crashing ..
When my view did loaded my array count is 64
I assign this to number of row return [categorieArray count];
and cell configuration
cell.textLabel.text=[categorieArray objectAtIndex:indexPath.row];
return cell;
*** Call stack at first throw:
(
0 CoreFoundation 0x00f8fbe9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x010e45c2 objc_exception_throw + 47
2 CoreFoundation 0x00f916fb -[NSObject(NSObject) doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x00f01366 ___forwarding___ + 966
4 CoreFoundation 0x00f00f22 _CF_forwarding_prep_0 + 50
5 Sigma-Aldrich 0x0000468d -[RootViewController tableView:cellForRowAtIndexPath:] + 237
6 UIKit 0x000977fa -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:withIndexPath:] + 634
7 UIKit 0x0008d77f -[UITableView(UITableViewInternal) _createPreparedCellForGlobalRow:] + 75
8 UIKit 0x000a2450 -[UITableView(_UITableViewPrivate) _updateVisibleCellsNow:] + 1561
9 UIKit 0x0009a538 -[UITableView layoutSubviews] + 242
10 QuartzCore 0x017f5451 -[CALayer layoutSublayers] + 181
11 QuartzCore 0x017f517c CALayerLayoutIfNeeded + 220
12 QuartzCore 0x017ee37c _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 310
13 QuartzCore 0x017ee0d0 _ZN2CA11Transaction6commitEv + 292
14 QuartzCore 0x0181e7d5 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 99
15 CoreFoundation 0x00f70fbb __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 27
16 CoreFoundation 0x00f060e7 __CFRunLoopDoObservers + 295
17 CoreFoundation 0x00ecebd7 __CFRunLoopRun + 1575
18 CoreFoundation 0x00ece240 CFRunLoopRunSpecific + 208
19 CoreFoundation 0x00ece161 CFRunLoopRunInMode + 97
20 GraphicsServices 0x01203268 GSEventRunModal + 217
21 GraphicsServices 0x0120332d GSEventRun + 115
22 UIKit 0x0003242e UIApplicationMain + 1160
23 Sigma-Aldrich 0x00001d49 main + 121
24 Sigma-Aldrich 0x00001cc5 start + 53
25 ??? 0x00000001 0x0 + 1
)
terminate called after throwing an instance of 'NSException'
It seems you have an incomplete implementation of your UITableViewDataSource, specifically (it seems) you forgot to implement tableView:cellForRowAtIndexPath, so that when the framework tries and calls it, it fails.
Have a look here for more info.