UICollectionView with CSStickyHeaderFlowLayout crashes on scroll up and down - objective-c

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

Related

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

IOS Application Terminating at main file itself NSException

2015-09-21 10:57:48.696 Kip Up[4707:140538] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(
0 CoreFoundation 0x00ce6746 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x005b9a97 objc_exception_throw + 44
2 CoreFoundation 0x00b9bce1 -[__NSArrayM insertObject:atIndex:] + 881
3 CoreFoundation 0x00b9b941 -[__NSArrayM addObject:] + 65
4 UIKit 0x0134bc3b -[UIView(UIViewGestures) addGestureRecognizer:] + 210
5 Kip Up 0x000c0c1e -[ViewController viewDidLoad] + 414
6 UIKit 0x0141dd54 -[UIViewController loadViewIfRequired] + 771
7 UIKit 0x0141e045 -[UIViewController view] + 35
8 UIKit 0x0130fe35 -[UIWindow addRootViewControllerViewIfPossible] + 66
9 UIKit 0x013102fc -[UIWindow _setHidden:forced:] + 287
10 UIKit 0x013105f8 -[UIWindow _orderFrontWithoutMakingKey] + 49
11 UIKit 0x0131e966 -[UIWindow makeKeyAndVisible] + 80
12 UIKit 0x012b3e88 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 3217
13 UIKit 0x012b73d2 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1639
14 UIKit 0x012d08ee __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
15 UIKit 0x012b5ffa -[UIApplication workspaceDidEndTransaction:] + 155
16 FrontBoardServices 0x04490c9e __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
17 FrontBoardServices 0x0449072f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
18 FrontBoardServices 0x044a2d7c __31-[FBSSerialQueue performAsync:]_block_invoke_2 + 30
19 CoreFoundation 0x00c08050 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
20 CoreFoundation 0x00bfd963 __CFRunLoopDoBlocks + 195
21 CoreFoundation 0x00bfd7bb __CFRunLoopRun + 2715
22 CoreFoundation 0x00bfca5b CFRunLoopRunSpecific + 443
23 CoreFoundation 0x00bfc88b CFRunLoopRunInMode + 123
24 UIKit 0x012b59b2 -[UIApplication _run] + 571
25 UIKit 0x012b90b6 UIApplicationMain + 1526
26 Kip Up 0x000c229a main + 138
27 libdyld.dylib 0x03278ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Please check if your root view controller UIViewController connections are intact. It usually happens due to broken link on the Interface Builder. If you are using Storyboards, make sure you haven't hooked up duplicate referencing outlets. Also ensure that you are importing AppDelegate.h.
Again there could be n number of reason for this crash. Please use exception or symbolic break point to come to a conclusion.

UITableViewController in iOS 8 Today Extension

I'm trying to add UITableViewController to Today Widget, but every time I drag UITableViewController to Storyboard and run the Widget it crashes with the following error.
I've tried multiple times. I've tried it by using Table View object, but problem persists.
Note: It crashes even before loading viewDidLoad() method.
2015-06-06 01:19:20.569 iOSHackerToday[3202:283287] * Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '* -[NSArrayM
insertObject:atIndex:]: object cannot be nil'
*** First throw call stack: ( 0 CoreFoundation 0x0000000107842c65 __exceptionPreprocess + 165 1 libobjc.A.dylib
0x00000001074dbbb7 objc_exception_throw + 45 2 CoreFoundation
0x000000010770f8ca -[__NSArrayM insertObject:atIndex:] + 954 3
UIKit 0x0000000107d6f0b9
-[UIViewController _addChildViewController:performHierarchyCheck:notifyWillMove:] + 338 4 UIKit 0x0000000108241a0c
-[_UIViewServiceViewControllerOperator __createViewController:withContextToken:fbsDisplays:appearanceSerializedRepresentations:legacyAppearance:traitCollection:initialInterfaceOrientation:hostAccessibilityServerPort:canShowTextServices:replyHandler:]
+ 2216 5 CoreFoundation 0x0000000107738dec __invoking_ + 140 6 CoreFoundation 0x0000000107738c42 -[NSInvocation invoke] + 290 7 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 8 UIKit
0x00000001082fd01b -[_UIViewServiceImplicitAnimationDecodingProxy
forwardInvocation:] + 222 9 CoreFoundation
0x000000010779ff4f forwarding + 495 10 CoreFoundation
0x000000010779fcd8 _CF_forwarding_prep_0 + 120 11 CoreFoundation
0x0000000107738dec invoking_ + 140 12 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 13 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 14 UIKit
0x00000001082889f4 -[_UIQueueingProxy forwardInvocation:] + 319 15
CoreFoundation 0x000000010779ff4f
forwarding + 495 16 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 17 CoreFoundation
0x0000000107738dec invoking_ + 140 18 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 19 CoreFoundation
0x00000001077c9016 -[NSInvocation invokeWithTarget:] + 54 20
CoreFoundation 0x000000010779ff4f
forwarding + 495 21 CoreFoundation 0x000000010779fcd8 _CF_forwarding_prep_0 + 120 22 CoreFoundation
0x0000000107738dec invoking_ + 140 23 CoreFoundation
0x0000000107738c42 -[NSInvocation invoke] + 290 24 libdispatch.dylib
0x0000000109da6f16 _dispatch_call_block_and_release + 12 25
libdispatch.dylib 0x0000000109dc1964
_dispatch_client_callout + 8 26 libdispatch.dylib 0x0000000109daca59 _dispatch_main_queue_callback_4CF + 704 27
CoreFoundation 0x00000001077aa1f9
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 9 28 CoreFoundation 0x000000010776bdcb __CFRunLoopRun
+ 2043 29 CoreFoundation 0x000000010776b366 CFRunLoopRunSpecific + 470 30 GraphicsServices
0x000000010b01ca3e GSEventRunModal + 161 31 UIKit
0x0000000107c3b900 UIApplicationMain + 1282 32 libxpc.dylib
0x000000010a0a7aec _xpc_objc_main + 453 33 libxpc.dylib
0x000000010a0a9e91 xpc_main + 185 34 Foundation
0x0000000107209ee1 service_connection_handler + 0 35 PlugInKit
0x0000000106ff3a82 -[PKService run] + 521 36 PlugInKit
0x0000000106ff3747 +[PKService main] + 55 37 PlugInKit
0x0000000106ff3aa6 +[PKService _defaultRun:arguments:] + 17 38
libextension.dylib 0x000000010978399d NSExtensionMain
+ 51 39 libdyld.dylib 0x0000000109df1145 start + 1 40 ??? 0x0000000000000001 0x0 + 1 ) libc++abi.dylib: terminating with uncaught exception of type
NSException (lldb)
When you delete the default layout and drag a new table view controller, you need to mark the new view controller as 'Intial View Controller'
Here's the Apple's document which explains how to do it. https://developer.apple.com/library/ios/recipes/xcode_help-IB_storyboard/chapters/SetInitialController.html
In the storyboard, if you are using a custom view controller class made in swift, make sure you check the box 'Inherit Module From Target':

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:

Xcode Error with slideviewcontroller

I am new to Xcode and I keep getting this error and I am not quite sure what it means and how to fix it:
Below is the link to the code error(http://pastebin.com/Y74frJxa) ...
2014-01-26 00:23:16.183 SidebarDemo[677:70b] *** Assertion failure in -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:], /SourceCache/UIKit_Sim/UIKit-2903.23/UITableView.m:5261
2014-01-26 00:23:16.186 SidebarDemo[677:70b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'unable to dequeue a cell with identifier map - must register a nib or a class for the identifier or connect a prototype cell in a storyboard'
*** First throw call stack:
(
0 CoreFoundation 0x0222a5e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x016a48b6 objc_exception_throw + 44
2 CoreFoundation 0x0222a448 +[NSException raise:format:arguments:] + 136
3 Foundation 0x01077fee -[NSAssertionHandler handleFailureInMethodbject:file:lineNumber:description:] + 116
4 UIKit 0x002e9ed3 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:] + 170
5 SidebarDemo 0x0000d6e9 -[SidebarViewController tableView:cellForRowAtIndexPath:] + 233
6 UIKit 0x002f461f -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 412
7 UIKit 0x002f46f3 -[UITableView _createPreparedCellForGlobalRow:] + 69
8 UIKit 0x002d8774 -[UITableView _updateVisibleCellsNow:] + 2378
9 UIKit 0x002ebe95 -[UITableView layoutSubviews] + 213
10 UIKit 0x00270267 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
11 libobjc.A.dylib 0x016b681f -[NSObject performSelector:withObject:] + 70
12 QuartzCore 0x029ed2ea -[CALayer layoutSublayers] + 148
13 QuartzCore 0x029e10d4 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
14 QuartzCore 0x029e0f40 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
15 QuartzCore 0x02948ae6 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
16 QuartzCore 0x02949e71 _ZN2CA11Transaction6commitEv + 393
17 QuartzCore 0x02a06430 +[CATransaction flush] + 52
18 UIKit 0x00221dc9 _afterCACommitHandler + 131
19 CoreFoundation 0x021f24ce __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
20 CoreFoundation 0x021f241f __CFRunLoopDoObservers + 399
21 CoreFoundation 0x021d0344 __CFRunLoopRun + 1076
22 CoreFoundation 0x021cfac3 CFRunLoopRunSpecific + 467
23 CoreFoundation 0x021cf8db CFRunLoopRunInMode + 123
24 GraphicsServices 0x027c59e2 GSEventRunModal + 192
25 GraphicsServices 0x027c5809 GSEventRun + 104
26 UIKit 0x00205d3b UIApplicationMain + 1225
27 SidebarDemo 0x0000c76d main + 141
28 libdyld.dylib 0x0386a70d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Thank you to all who help in advance!
The error says you are missing reuseIdentifier. For this,
just select tableViewCell in yourTableView in Storyboard and set reuseIdentifier in attributes Inspector.
use that reuse identifier in cellForRowAtIndex method as
[tableView dequeueReusableCellWithIdentifier:#"xxxx"]