App crashes when number of rows changes after reloading table - ios

In my iOS app there is a view with a tableview inside. The table cells are loaded from a PHP file on a remote server. I have also put a NSTimer on the view controller that should reload the data.
The cells contain information that may change on a time interval. That is working fine only if the number of cells doesn't change on a time interval. If a cell is added on a time interval, then the app crashes.
This is the code for the NSTimer:
self.timer = [NSTimer scheduledTimerWithTimeInterval:10 target:self selector:#selector(refrescar) userInfo:nil repeats:YES];
And this is the code for the method refrescar:
- (void)refrescar {
total_actual =0;
total =0;
[self viewDidLoad];
}
I have also tried with this one:
- (void)refrescar {
total_actual =0;
total =0;
[self.tableView reloadData];
}
But the app crashes as with the other code with [self viewDidLoad];
Any help is welcome.
Error log:
2014-11-13 23:52:23.299 RestAppXXI[1552:607] -[NSNull length]: unrecognized selector sent to instance 0xcb6068
2014-11-13 23:52:23.429 RestAppXXI[1552:607] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSNull length]: unrecognized selector sent to instance 0xcb6068'
*** First throw call stack:
(
0 CoreFoundation 0x00b6a1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x031588e5 objc_exception_throw + 44
2 CoreFoundation 0x00c07243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x00b5a50b ___forwarding___ + 1019
4 CoreFoundation 0x00b5a0ee _CF_forwarding_prep_0 + 14
5 UIKit 0x01fd2cc7 -[UILabel _textRectForBounds:limitedToNumberOfLines:includingShadow:] + 57
6 UIKit 0x01fd2b13 -[UILabel textRectForBounds:limitedToNumberOfLines:] + 85
7 UIKit 0x01fd662e -[UILabel _intrinsicSizeWithinSize:] + 173
8 UIKit 0x01fd6751 -[UILabel intrinsicContentSize] + 91
9 UIKit 0x024b07ef -[UIView(UIConstraintBasedLayout) _generateContentSizeConstraints] + 36
10 UIKit 0x024b0480 -[UIView(UIConstraintBasedLayout) _updateContentSizeConstraints] + 511
11 UIKit 0x024b67bf -[UIView(AdditionalLayoutSupport) updateConstraints] + 110
12 UIKit 0x01fd6579 -[UILabel updateConstraints] + 189
13 UIKit 0x024b6058 -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 239
14 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
15 UIKit 0x024b6157 __UIViewRecursionHelper + 40
16 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
17 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
18 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
19 UIKit 0x024b6157 __UIViewRecursionHelper + 40
20 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
21 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
22 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
23 UIKit 0x024b6157 __UIViewRecursionHelper + 40
24 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
25 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
26 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
27 UIKit 0x024b6157 __UIViewRecursionHelper + 40
28 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
29 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
30 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
31 UIKit 0x024b6157 __UIViewRecursionHelper + 40
32 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
33 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
34 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
35 UIKit 0x024b6157 __UIViewRecursionHelper + 40
36 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
37 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
38 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
39 UIKit 0x024b6157 __UIViewRecursionHelper + 40
40 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
41 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
42 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
43 UIKit 0x024b6157 __UIViewRecursionHelper + 40
44 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
45 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
46 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
47 UIKit 0x024b6157 __UIViewRecursionHelper + 40
48 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
49 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
50 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
51 UIKit 0x024b6157 __UIViewRecursionHelper + 40
52 CoreFoundation 0x00b0bc69 CFArrayApplyFunction + 57
53 UIKit 0x024b5ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
54 UIKit 0x024b61d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
55 UIKit 0x024aa878 __62-[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded]_block_invoke + 43
56 Foundation 0x02f0b68c -[NSISEngine withBehaviors:performModifications:] + 107
57 Foundation 0x02d9b3c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
58 UIKit 0x024aa590 -[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded] + 225
59 UIKit 0x024aa467 -[UIWindow(UIConstraintBasedLayout) layoutSublayersOfLayer:] + 90
60 libobjc.A.dylib 0x0316a82b -[NSObject performSelector:withObject:] + 70
61 QuartzCore 0x0171a45a -[CALayer layoutSublayers] + 148
62 QuartzCore 0x0170e244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
63 QuartzCore 0x0170e0b0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
64 QuartzCore 0x016747fa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
65 QuartzCore 0x01675b85 _ZN2CA11Transaction6commitEv + 393
66 QuartzCore 0x01676258 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
67 CoreFoundation 0x00b3236e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
68 CoreFoundation 0x00b322bf __CFRunLoopDoObservers + 399
69 CoreFoundation 0x00b10254 __CFRunLoopRun + 1076
70 CoreFoundation 0x00b0f9d3 CFRunLoopRunSpecific + 467
71 CoreFoundation 0x00b0f7eb CFRunLoopRunInMode + 123
72 GraphicsServices 0x041945ee GSEventRunModal + 192
73 GraphicsServices 0x0419442b GSEventRun + 104
74 UIKit 0x01e18f9b UIApplicationMain + 1225
75 RestAppXXI 0x000305ed main + 141
76 libdyld.dylib 0x049eb6d9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

That is not relevant to your UITableView. That is most probably from a string you are trying to access, but it's nil.

User exception break point to debug, you are calling length method on NSNull object
And why to use NSTimer, you can reload table after getting response from server

Related

App is crashing on adding #IBAction in view controller

I was trying to add a tool bar at the bottom of UITableView which is> successfully added. But when i connect the bar button with IBAction,
on loading of that view controller app just crashes. Without linking
to IbAction app works fine.
I am using xCode 9.2
Here is my storyboard.
Here is the crash log.
2018-04-11 11:11:38.636121+0500 SafeBolt[9610:88848] *** Assertion failure in -[_UINavigationBarVisualProviderModernIOS _contentViewFittingHeight], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit_Sim/UIKit-3698.33.6/_UINavigationBarVisualProviderModernIOS.m:569
2018-04-11 11:11:38.662356+0500 SafeBolt[9610:88848] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Sigh. Contentview size is zero.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001072b612b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x00000001063fdf41 objc_exception_throw + 48
2 CoreFoundation 0x00000001072bb2f2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000105e9ed69 -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:] + 193
4 UIKit 0x00000001085d22f5 -[_UINavigationBarVisualProviderModernIOS _contentViewFittingHeight] + 265
5 UIKit 0x00000001083505e0 -[UINavigationItem _desiredHeightForBarMetrics:defaultHeightBlock:] + 90
6 UIKit 0x00000001085d4fa1 -[_UINavigationBarVisualProviderModernIOS heightRangeFittingWidth:] + 412
7 UIKit 0x0000000107ae40ed -[UINavigationBar _heightRangeForNavigationItem:fittingWidth:] + 210
8 UIKit 0x0000000107bc0a98 -[UINavigationController _intrinsicNavigationBarHeightRangeForViewController:] + 187
9 UIKit 0x0000000107bc09b6 -[UINavigationController _preferredHeightForHidingNavigationBarForViewController:] + 628
10 UIKit 0x0000000107bb088f -[UINavigationController _positionNavigationBarHidden:edge:initialOffset:] + 356
11 UIKit 0x0000000107bb0cf8 -[UINavigationController _positionNavigationBarHidden:edge:] + 388
12 UIKit 0x0000000107bb8555 -[UINavigationController loadView] + 243
13 UIKit 0x0000000107b7b05c -[UIViewController loadViewIfRequired] + 195
14 UIKit 0x0000000107b7b8b9 -[UIViewController view] + 27
15 iOS_Slide_Menu 0x00000001054bbe5a -[SlideNavigationController setEnableShadow:] + 74
16 iOS_Slide_Menu 0x00000001054b9804 -[SlideNavigationController setup] + 244
17 iOS_Slide_Menu 0x00000001054b9541 -[SlideNavigationController initWithCoder:] + 145
18 UIKit 0x0000000107e644c8 -[UIClassSwapper initWithCoder:] + 246
19 UIKit 0x00000001080b9109 UINibDecoderDecodeObjectForValue + 704
20 UIKit 0x00000001080b8e3e -[UINibDecoder decodeObjectForKey:] + 89
21 UIKit 0x0000000107ae075a -[UINavigationBar initWithCoder:] + 753
22 UIKit 0x00000001080b9109 UINibDecoderDecodeObjectForValue + 704
23 UIKit 0x00000001080b8e3e -[UINibDecoder decodeObjectForKey:] + 89
24 UIKit 0x000000010834b5f2 -[UINavigationItem initWithCoder:] + 1018
25 UIKit 0x00000001080b9109 UINibDecoderDecodeObjectForValue + 704
26 UIKit 0x00000001080b8e3e -[UINibDecoder decodeObjectForKey:] + 89
27 UIKit 0x0000000107b76053 -[UIViewController initWithCoder:] + 432
28 SafeBolt 0x000000010448dfa2 _T08SafeBolt18BaseViewControllerCACSgSo7NSCoderC5coder_tcfc + 66
29 SafeBolt 0x000000010446db83 _T08SafeBolt26EmailListingViewControllerCACSgSo7NSCoderC5coder_tcfc + 1315
30 SafeBolt 0x000000010446dc4f _T08SafeBolt26EmailListingViewControllerCACSgSo7NSCoderC5coder_tcfcTo + 47
31 UIKit 0x0000000107e644c8 -[UIClassSwapper initWithCoder:] + 246
32 UIKit 0x00000001080b9109 UINibDecoderDecodeObjectForValue + 704
33 UIKit 0x00000001080b8e3e -[UINibDecoder decodeObjectForKey:] + 89
34 UIKit 0x0000000107e64194 -[UIRuntimeConnection initWithCoder:] + 178
35 UIKit 0x0000000107e648d0 -[UIRuntimeEventConnection initWithCoder:] + 59
36 UIKit 0x00000001080b9109 UINibDecoderDecodeObjectForValue + 704
37 UIKit 0x00000001080b92a7 UINibDecoderDecodeObjectForValue + 1118
38 UIKit 0x00000001080b8e3e -[UINibDecoder decodeObjectForKey:] + 89
39 UIKit 0x0000000107e63391 -[UINib instantiateWithOwner:options:] + 1262
40 UIKit 0x00000001082f3fc2 -[UIStoryboard instantiateViewControllerWithIdentifier:] + 181
41 SafeBolt 0x000000010448eda2 _T08SafeBolt11AppDelegateC23setUpRootViewControlleryyF + 386
42 SafeBolt 0x000000010448f6b5 _T08SafeBolt11AppDelegateC11applicationSbSo13UIApplicationC_s10DictionaryVySC0F16LaunchOptionsKeyVypGSg022didFinishLaunchingWithI0tF + 101
43 SafeBolt 0x000000010448f79a _T08SafeBolt11AppDelegateC11applicationSbSo13UIApplicationC_s10DictionaryVySC0F16LaunchOptionsKeyVypGSg022didFinishLaunchingWithI0tFTo + 186
44 UIKit 0x00000001079cabca -[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:] + 299
45 UIKit 0x00000001079cc648 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4113
46 UIKit 0x00000001079d1aeb -[UIApplication _runWithMainScene:transitionContext:completion:] + 1720
47 UIKit 0x0000000107d9b6f8 __111-[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:]_block_invoke + 924
48 UIKit 0x00000001081714c8 +[_UICanvas _enqueuePostSettingUpdateTransactionBlock:] + 153
49 UIKit 0x0000000107d9b2f1 -[__UICanvasLifecycleMonitor_Compatability _scheduleFirstCommitForScene:transition:firstActivation:completion:] + 249
50 UIKit 0x0000000107d9bb6b -[__UICanvasLifecycleMonitor_Compatability activateEventsOnly:withContext:completion:] + 696
51 UIKit 0x0000000108719a69 __82-[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:]_block_invoke + 262
52 UIKit 0x0000000108719922 -[_UIApplicationCanvas _transitionLifecycleStateWithTransitionContext:completion:] + 444
53 UIKit 0x00000001083f69c8 __125-[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:]_block_invoke + 221
54 UIKit 0x00000001085f5b06 _performActionsWithDelayForTransitionContext + 100
55 UIKit 0x00000001083f688b -[_UICanvasLifecycleSettingsDiffAction performActionsForCanvas:withUpdatedScene:settingsDiff:fromSettings:transitionContext:] + 231
56 UIKit 0x0000000108170b25 -[_UICanvas scene:didUpdateWithDiff:transitionContext:completion:] + 392
57 UIKit 0x00000001079d036a -[UIApplication workspace:didCreateScene:withTransitionContext:completion:] + 523
58 UIKit 0x0000000107fab605 -[UIApplicationSceneClientAgent scene:didInitializeWithEvent:completion:] + 369
59 FrontBoardServices 0x000000010d340cc0 -[FBSSceneImpl _didCreateWithTransitionContext:completion:] + 338
60 FrontBoardServices 0x000000010d3497b5 __56-[FBSWorkspace client:handleCreateScene:withCompletion:]_block_invoke_2 + 235
61 libdispatch.dylib 0x000000010af5933d _dispatch_client_callout + 8
62 libdispatch.dylib 0x000000010af5e9f3 _dispatch_block_invoke_direct + 592
63 FrontBoardServices 0x000000010d375498 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
64 FrontBoardServices 0x000000010d37514e -[FBSSerialQueue _performNext] + 464
65 FrontBoardServices 0x000000010d3756bd -[FBSSerialQueue _performNextFromRunLoopSource] + 45
66 CoreFoundation 0x0000000107259101 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
67 CoreFoundation 0x00000001072f8f71 __CFRunLoopDoSource0 + 81
68 CoreFoundation 0x000000010723da19 __CFRunLoopDoSources0 + 185
69 CoreFoundation 0x000000010723cfff __CFRunLoopRun + 1279
70 CoreFoundation 0x000000010723c889 CFRunLoopRunSpecific + 409
71 GraphicsServices 0x000000010dcb79c6 GSEventRunModal + 62
72 UIKit 0x00000001079d35d6 UIApplicationMain + 159
73 SafeBolt 0x0000000104490d27 main + 55
74 libdyld.dylib 0x000000010afd5d81 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Here is the code for IbAction.
#IBAction func testAction(_ sender: UIBarButtonItem) {
}
Any help would be appreciated.
Please try the following steps in order to solve this issue. Also let me know if it doesn't work for you.
Select the item in storyboard for which you are trying to add IBAction
Check in the connection inspector and see if there are still some extra connections other then the required one.
If there are other extra connections delete them and compile your code again. It should work.
This error usually happens when you create connections and deletes the code from your controller but your connection still exists.

iOS autolayout crash - where do I start?

The following crash occures. Xcode doesn't report any missing constraint (obiously) and the crash doesn't happen every time.
Clearly I have a bug somewhere - but where do I begin investigating?
Edit:
So after making an exception breakpoint - I'm seeing the crashing thread that is autolayout code.
A different thread has the following
Not shockingly this is a resize of a UILabel - what now?
The crash dump:
RemoveVariableFromSortedPriorityVectorList(NSISObjectiveLinearExpression *, NSISVariable *)(), /SourceCache/Foundation_Sim/Foundation-1047.25/Layout.subproj/IncrementalSimplex/NSISObjectiveLinearExpression.m:136
2014-11-03 00:28:14.899 Cookila copy[3470:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Missing variable UILabel:0x78885670.Width{id: 5777} in variablesSortedByPriorityVectors'
*** First throw call stack:
(
0 CoreFoundation 0x03ba91e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x0386a8e5 objc_exception_throw + 44
2 CoreFoundation 0x03ba9048 +[NSException raise:format:arguments:] + 136
3 Foundation 0x03307b20 -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 101
4 Foundation 0x03414df4 RemoveVariableFromSortedPriorityVectorList + 386
5 Foundation 0x0329af95 -[NSISObjectiveLinearExpression removeVariable:] + 30
6 Foundation 0x034152b9 -[NSISObjectiveLinearExpression replaceVariable:withExpression:processVariableNewToReceiver:processVariableDroppedFromReceiver:] + 76
7 Foundation 0x0329b3f7 -[NSISEngine substituteOutAllOccurencesOfBodyVar:withExpression:] + 897
8 Foundation 0x0340b5cf -[NSISEngine pivotToMakeBodyVar:newHeadOfRowWithHead:andDropRow:] + 421
9 Foundation 0x0329a098 -[NSISEngine minimizeConstantInObjectiveRowWithHead:] + 287
10 Foundation 0x0340db9d -[NSISEngine tryUsingArtificialVariableToAddConstraintWithMarker:rowBody:usingInfeasibilityHandlingBehavior:mutuallyExclusiveConstraints:] + 300
11 Foundation 0x03298fc3 -[NSISEngine tryToAddConstraintWithMarker:expression:integralizationAdjustment:mutuallyExclusiveConstraints:] + 780
12 Foundation 0x03417a77 -[NSLayoutConstraint _addLoweredExpression:toEngine:integralizationAdjustment:lastLoweredConstantWasRounded:mutuallyExclusiveConstraints:] + 283
13 Foundation 0x03294596 -[NSLayoutConstraint _addToEngine:integralizationAdjustment:mutuallyExclusiveConstraints:] + 252
14 UIKit 0x029ac30d -[UIView(UIConstraintBasedLayout) _layoutEngine_didAddLayoutConstraint:roundingAdjustment:mutuallyExclusiveConstraints:] + 451
15 UIKit 0x029ada4b -[UIView(UIConstraintBasedLayout) _constraints_didChangeAutoresizingConstraintsArrayForContainedView:] + 233
16 UIKit 0x029ad60e -[UIView(UIConstraintBasedLayout) _setAutoresizingConstraints:] + 240
17 UIKit 0x029adea0 -[UIView(UIConstraintBasedLayout) _updateAutoresizingConstraints] + 117
18 UIKit 0x029b77bf -[UIView(AdditionalLayoutSupport) updateConstraints] + 110
19 UIKit 0x029b7058 -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 239
20 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
21 UIKit 0x029b7157 __UIViewRecursionHelper + 40
22 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
23 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
24 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
25 UIKit 0x029b7157 __UIViewRecursionHelper + 40
26 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
27 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
28 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
29 UIKit 0x029b7157 __UIViewRecursionHelper + 40
30 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
31 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
32 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
33 UIKit 0x029b7157 __UIViewRecursionHelper + 40
34 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
35 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
36 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
37 UIKit 0x029b7157 __UIViewRecursionHelper + 40
38 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
39 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
40 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
41 UIKit 0x029b7157 __UIViewRecursionHelper + 40
42 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
43 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
44 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
45 UIKit 0x029b7157 __UIViewRecursionHelper + 40
46 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
47 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
48 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
49 UIKit 0x029b7157 __UIViewRecursionHelper + 40
50 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
51 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
52 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
53 UIKit 0x029b7157 __UIViewRecursionHelper + 40
54 CoreFoundation 0x03b4ac69 CFArrayApplyFunction + 57
55 UIKit 0x029b6ffc -[UIView(AdditionalLayoutSupport) _internalUpdateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 147
56 UIKit 0x029b71d6 -[UIView(AdditionalLayoutSupport) _updateConstraintsIfNeededAccumulatingViewsNeedingSecondPass:] + 122
57 UIKit 0x029ab878 __62-[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded]_block_invoke + 43
58 Foundation 0x0340e68c -[NSISEngine withBehaviors:performModifications:] + 107
59 Foundation 0x0329e3c5 -[NSISEngine withAutomaticOptimizationDisabled:] + 48
60 UIKit 0x029ab590 -[UIWindow(UIConstraintBasedLayout) updateConstraintsIfNeeded] + 225
61 UIKit 0x029b7836 -[UIView(AdditionalLayoutSupport) _updateConstraintsAtWindowLevelIfNeeded] + 85
62 UIKit 0x0237b324 -[UIView(Hierarchy) layoutSubviews] + 62
63 UIKit 0x02388964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
64 libobjc.A.dylib 0x0387c82b -[NSObject performSelector:withObject:] + 70
65 QuartzCore 0x021f045a -[CALayer layoutSublayers] + 148
66 QuartzCore 0x021e4244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
67 QuartzCore 0x021e40b0 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
68 QuartzCore 0x0214a7fa _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 294
69 QuartzCore 0x0214bb85 _ZN2CA11Transaction6commitEv + 393
70 QuartzCore 0x0214c258 _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 92
71 CoreFoundation 0x03b7136e __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
72 CoreFoundation 0x03b712bf __CFRunLoopDoObservers + 399
73 CoreFoundation 0x03b4f254 __CFRunLoopRun + 1076
74 CoreFoundation 0x03b4e9d3 CFRunLoopRunSpecific + 467
75 CoreFoundation 0x03b4e7eb CFRunLoopRunInMode + 123
76 GraphicsServices 0x045815ee GSEventRunModal + 192
77 GraphicsServices 0x0458142b GSEventRun + 104
78 UIKit 0x02319f9b UIApplicationMain + 1225
79 Cookila copy 0x000e594d main + 141
80 libdyld.dylib 0x0415b701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Well if it is a resize of a UILabel you have constraints on I would try removing the constraints it has, resize it and then set up new constraints (even though they are the same as the previous ones). You can edit/override that method to recibe the label remove and re add constraints.
Code:
[label autoRemoveConstraintsAffectingView];
//Resize
//Add constraints
[self.view needsUpdateConstraints];
[self.view layoutIfNeeded];

Objective C NSUnknownKeyException setValue:forUndefinedKey:

after I upgraded xcode to new version (6.0.1), i encurrend into an NSUnknownKeyException when running my app.
Looking around for a solution, i found out that usually this issue comes up for "dead" outlet reference in the xib, but in my case occurs when i fetch data from an sqlite database. I use FMDB and BZObjectStore libraries for working with my db.
Here is my console output:
2014-10-15 15:30:24.894 PBWines[59418:428758] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<BZObjectStoreRelationshipModel 0x79f65420> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key hash.'
*** First throw call stack:
(
0 CoreFoundation 0x02485df6 __exceptionPreprocess + 182
1 libobjc.A.dylib 0x0210fa97 objc_exception_throw + 44
2 CoreFoundation 0x02485a11 -[NSException raise] + 17
3 Foundation 0x01d97d5e -[NSObject(NSKeyValueCoding) setValue:forUndefinedKey:] + 282
4 Foundation 0x01cf3d88 _NSSetUsingKeyValueSetter + 115
5 Foundation 0x01cf3d0d -[NSObject(NSKeyValueCoding) setValue:forKey:] + 267
6 PBWines 0x00131de8 -[BZObjectStoreModelMapper select:condition:db:] + 1336
7 PBWines 0x00134c02 -[BZObjectStoreModelMapper relationshipObjectsWithCondition:relationshipRuntime:db:] + 162
8 PBWines 0x001346be -[BZObjectStoreModelMapper relationshipObjectsWithObject:attribute:relationshipRuntime:db:] + 686
9 PBWines 0x00146a31 -[BZObjectStoreReferenceMapper saveObjectsSub:db:error:] + 15361
10 PBWines 0x00142de2 -[BZObjectStoreReferenceMapper saveObjects:db:error:] + 274
11 PBWines 0x0014c06d -[BZObjectStoreReferenceMapper registerRuntime:db:error:] + 925
12 PBWines 0x0014b3d8 -[BZObjectStoreReferenceMapper runtimeWithClazz:db:error:] + 232
13 PBWines 0x001401a9 -[BZObjectStoreReferenceMapper fetchObjects:condition:db:error:] + 233
14 PBWines 0x0010cbb7 __46-[BZObjectStore fetchObjects:condition:error:]_block_invoke + 231
15 PBWines 0x001083c7 __40-[BZObjectStore inTransactionWithBlock:]_block_invoke + 279
16 PBWines 0x00194bf1 __46-[FMDatabaseQueue beginTransaction:withBlock:]_block_invoke + 273
17 libdispatch.dylib 0x02b6ae1f _dispatch_client_callout + 14
18 libdispatch.dylib 0x02b4f5bf _dispatch_barrier_sync_f_invoke + 144
19 libdispatch.dylib 0x02b4ecf3 dispatch_barrier_sync_f + 105
20 libdispatch.dylib 0x02b4f6cf dispatch_barrier_sync + 54
21 PBWines 0x00194a85 -[FMDatabaseQueue beginTransaction:withBlock:] + 197
22 PBWines 0x00194e8c -[FMDatabaseQueue inTransaction:] + 108
23 PBWines 0x001081ce -[BZObjectStore inTransactionWithBlock:] + 382
24 PBWines 0x0010c92a -[BZObjectStore fetchObjects:condition:error:] + 410
25 PBWines 0x000a2d7e -[PBWPaesiViewController viewDidLoad] + 702
26 UIKit 0x00c50d54 -[UIViewController loadViewIfRequired] + 771
27 UIKit 0x00c869cd -[UINavigationController _layoutViewController:] + 42
28 UIKit 0x00c86f3c -[UINavigationController _updateScrollViewFromViewController:toViewController:] + 235
29 UIKit 0x00c87040 -[UINavigationController _startTransition:fromViewController:toViewController:] + 90
30 UIKit 0x00c87fdb -[UINavigationController _startDeferredTransitionIfNeeded:] + 669
31 UIKit 0x00c88c52 -[UINavigationController __viewWillLayoutSubviews] + 57
32 UIKit 0x00dfaebc -[UILayoutContainerView layoutSubviews] + 213
33 UIKit 0x00b849c0 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 608
34 libobjc.A.dylib 0x02125771 -[NSObject performSelector:withObject:] + 70
35 QuartzCore 0x0294827f -[CALayer layoutSublayers] + 152
36 QuartzCore 0x0293c105 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 397
37 QuartzCore 0x0293bf60 _ZN2CA5Layer28layout_and_display_if_neededEPNS_11TransactionE + 26
38 QuartzCore 0x0289a676 _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 284
39 QuartzCore 0x0289ba3c _ZN2CA11Transaction6commitEv + 392
40 QuartzCore 0x02961789 +[CATransaction flush] + 52
41 UIKit 0x00af77e6 -[UIApplication _reportMainSceneUpdateFinished:] + 39
42 UIKit 0x00af8761 -[UIApplication _runWithMainScene:transitionContext:completion:] + 3163
43 UIKit 0x00b10d30 __84-[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:]_block_invoke + 59
44 UIKit 0x00af6d7f -[UIApplication workspaceDidEndTransaction:] + 155
45 FrontBoardServices 0x04ca59de __37-[FBSWorkspace clientEndTransaction:]_block_invoke_2 + 71
46 FrontBoardServices 0x04ca546f __40-[FBSWorkspace _performDelegateCallOut:]_block_invoke + 54
47 FrontBoardServices 0x04cb7425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
48 CoreFoundation 0x023a97a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
49 CoreFoundation 0x0239f0b3 __CFRunLoopDoBlocks + 195
50 CoreFoundation 0x0239ef0b __CFRunLoopRun + 2715
51 CoreFoundation 0x0239e1ab CFRunLoopRunSpecific + 443
52 CoreFoundation 0x0239dfdb CFRunLoopRunInMode + 123
53 UIKit 0x00af6744 -[UIApplication _run] + 571
54 UIKit 0x00af9e16 UIApplicationMain + 1526
55 PBWines 0x000bb7ed main + 141
56 libdyld.dylib 0x02b96ac9 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
Thanks in advance for help.
I've released BZObjectStore 1.3.13.
Can you run 'pod update' and try again?
Thanks

libc abi.dylib: terminating with uncaught exception of type NSException CollectionView

when i run my app, i received this error :
2014-08-11 10:52:10.546 ControlViewTest[918:60b] -[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x8c862f0
2014-08-11 10:52:10.605 ControlViewTest[918:60b] * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController collectionView:numberOfItemsInSection:]: unrecognized selector sent to instance 0x8c862f0'
* First throw call stack:
(
0 CoreFoundation 0x017ec1e4 exceptionPreprocess + 180
1 libobjc.A.dylib 0x0156b8e5 objc_exception_throw + 44
2 CoreFoundation 0x01889243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x017dc50b ___forwarding_ + 1019
4 CoreFoundation 0x017dc0ee _CF_forwarding_prep_0 + 14
5 UIKit 0x008b0c34 -[UICollectionViewData _updateItemCounts] + 331
6 UIKit 0x008b0ce1 -[UICollectionViewData _validateItemCounts] + 45
7 UIKit 0x008b2c64 -[UICollectionViewData numberOfSections] + 35
8 UIKit 0x0087d6ed -[UICollectionView numberOfSections] + 62
9 UIKit 0x0089d614 -[UICollectionViewFlowLayout(Internal) _getSizingInfos] + 205
10 UIKit 0x0089e48f -[UICollectionViewFlowLayout(Internal) _fetchItemsInfo] + 521
11 UIKit 0x00899fe2 -[UICollectionViewFlowLayout prepareLayout] + 157
12 UIKit 0x008b0d9d -[UICollectionViewData _prepareToLoadData] + 76
13 UIKit 0x008b15c5 -[UICollectionViewData validateLayoutInRect:] + 56
14 UIKit 0x00877603 -[UICollectionView layoutSubviews] + 173
15 UIKit 0x0029a964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
16 libobjc.A.dylib 0x0157d82b -[NSObject performSelector:withObject:] + 70
17 QuartzCore 0x03c5745a -[CALayer layoutSublayers] + 148
18 QuartzCore 0x03c4b244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
19 QuartzCore 0x03c573a5 -[CALayer layoutIfNeeded] + 160
20 UIKit 0x0035cae3 -[UIViewController window:setupWithInterfaceOrientation:] + 304
21 UIKit 0x00272aa7 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212
22 UIKit 0x00271646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
23 UIKit 0x00271518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117
24 UIKit 0x002715a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67
25 UIKit 0x0027063a 57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120
26 UIKit 0x0027059c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400
27 UIKit 0x002712f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870
28 UIKit 0x002748e6 -[UIWindow setDelegate:] + 449
29 UIKit 0x0034eb77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180
30 UIKit 0x0026a474 -[UIWindow addRootViewControllerViewIfPossible] + 591
31 UIKit 0x0026a5ef -[UIWindow _setHidden:forced:] + 312
32 UIKit 0x0026a86b -[UIWindow _orderFrontWithoutMakingKey] + 49
33 UIKit 0x002753c8 -[UIWindow makeKeyAndVisible] + 65
34 UIKit 0x00225bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
35 UIKit 0x0022a667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
36 UIKit 0x0023ef92 -[UIApplication handleEvent:withNewEvent:] + 3517
37 UIKit 0x0023f555 -[UIApplication sendEvent:] + 85
38 UIKit 0x0022c250 _UIApplicationHandleEvent + 683
39 GraphicsServices 0x037e1f02 _PurpleEventCallback + 776
40 GraphicsServices 0x037e1a0d PurpleEventCallback + 46
41 CoreFoundation 0x01767ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 53
42 CoreFoundation 0x017679db __CFRunLoopDoSource1 + 523
43 CoreFoundation 0x0179268c __CFRunLoopRun + 2156
44 CoreFoundation 0x017919d3 CFRunLoopRunSpecific + 467
45 CoreFoundation 0x017917eb CFRunLoopRunInMode + 123
46 UIKit 0x00229d9c -[UIApplication _run] + 840
47 UIKit 0x0022bf9b UIApplicationMain + 1225
48 ControlViewTest 0x0000264d main + 141
49 libdyld.dylib 0x01e33701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
somebody can help me pls
Your UICollectionView has a data source set which does not implement the required method collectionView:numberOfItemsInSection:. You need to assign your UICollectionView a valid data source: a class that you've written and that implements collectionView:numberOfItemsInSection:.

I got this issue "Terminating with uncaught exception of type NSException" with my execution, can anybody help me with this?

Can I get helped with the below issue? I'm struck over here. While executing the code I'm getting this log. I couldn't find the solution for it. I tried it for the whole day but couldn't find the solution for it.
2014-05-29 10:34:35.723 Timesheet[14438:60b] -[UITableViewCell setAlternateRowColor:]: unrecognized selector sent to instance 0x8f98a70
2014-05-29 10:34:35.764 Timesheet[14438:60b] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UITableViewCell setAlternateRowColor:]: unrecognized selector sent to instance 0x8f98a70'
*** First throw call stack:
(
0 CoreFoundation 0x0180a1e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015898e5 objc_exception_throw + 44
2 CoreFoundation 0x018a7243 -[NSObject(NSObject) doesNotRecognizeSelector:] + 275
3 CoreFoundation 0x017fa50b ___forwarding___ + 1019
4 CoreFoundation 0x017fa0ee _CF_forwarding_prep_0 + 14
5 Timesheet 0x00002e13 -[ViewController tableView:cellForRowAtIndexPath:] + 691
6 UIKit 0x0034211f -[UITableView _createPreparedCellForGlobalRow:withIndexPath:] + 412
7 UIKit 0x003421f3 -[UITableView _createPreparedCellForGlobalRow:] + 69
8 UIKit 0x00323ece -[UITableView _updateVisibleCellsNow:] + 2428
9 UIKit 0x003386a5 -[UITableView layoutSubviews] + 213
10 UIKit 0x002b8964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
11 libobjc.A.dylib 0x0159b82b -[NSObject performSelector:withObject:] + 70
12 QuartzCore 0x03c7545a -[CALayer layoutSublayers] + 148
13 QuartzCore 0x03c69244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
14 QuartzCore 0x03c77885 -[CALayer(CALayerPrivate) layoutBelowIfNeeded] + 43
15 UIKit 0x002ab026 -[UIView(Hierarchy) layoutBelowIfNeeded] + 595
16 UIKit 0x002aadcd -[UIView(Hierarchy) layoutIfNeeded] + 74
17 UIKit 0x0038e744 -[UINavigationController _layoutViewController:] + 1062
18 UIKit 0x0038d966 -[UINavigationController _layoutTopViewController] + 176
19 UIKit 0x0038bb95 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 429
20 UIKit 0x0058f74e -[UINavigationTransitionView _notifyDelegateTransitionDidStopWithContext:] + 328
21 UIKit 0x0058fa53 -[UINavigationTransitionView _cleanupTransition] + 703
22 UIKit 0x0058fa92 -[UINavigationTransitionView _navigationTransitionDidStop] + 55
23 UIKit 0x002996dc -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 267
24 UIKit 0x00297ec5 +[UIViewAnimationState popAnimationState] + 334
25 UIKit 0x002ad123 +[UIView(Animation) commitAnimations] + 36
26 UIKit 0x0058f551 -[UINavigationTransitionView transition:fromView:toView:] + 2795
27 UIKit 0x0058ea5e -[UINavigationTransitionView transition:toView:] + 55
28 UIKit 0x0038f577 -[UINavigationController _startTransition:fromViewController:toViewController:] + 3186
29 UIKit 0x0038f8cc -[UINavigationController _startDeferredTransitionIfNeeded:] + 645
30 UIKit 0x003904e9 -[UINavigationController __viewWillLayoutSubviews] + 57
31 UIKit 0x004d10d1 -[UILayoutContainerView layoutSubviews] + 213
32 UIKit 0x002b8964 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 355
33 libobjc.A.dylib 0x0159b82b -[NSObject performSelector:withObject:] + 70
34 QuartzCore 0x03c7545a -[CALayer layoutSublayers] + 148
35 QuartzCore 0x03c69244 _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 380
36 QuartzCore 0x03c753a5 -[CALayer layoutIfNeeded] + 160
37 UIKit 0x0037aae3 -[UIViewController window:setupWithInterfaceOrientation:] + 304
38 UIKit 0x00290aa7 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:isRotating:] + 5212
39 UIKit 0x0028f646 -[UIWindow _setRotatableClient:toOrientation:updateStatusBar:duration:force:] + 82
40 UIKit 0x0028f518 -[UIWindow _setRotatableViewOrientation:updateStatusBar:duration:force:] + 117
41 UIKit 0x0028f5a0 -[UIWindow _setRotatableViewOrientation:duration:force:] + 67
42 UIKit 0x0028e63a __57-[UIWindow _updateToInterfaceOrientation:duration:force:]_block_invoke + 120
43 UIKit 0x0028e59c -[UIWindow _updateToInterfaceOrientation:duration:force:] + 400
44 UIKit 0x0028f2f3 -[UIWindow setAutorotates:forceUpdateInterfaceOrientation:] + 870
45 UIKit 0x002928e6 -[UIWindow setDelegate:] + 449
46 UIKit 0x0036cb77 -[UIViewController _tryBecomeRootViewControllerInWindow:] + 180
47 UIKit 0x00288474 -[UIWindow addRootViewControllerViewIfPossible] + 591
48 UIKit 0x002885ef -[UIWindow _setHidden:forced:] + 312
49 UIKit 0x0028886b -[UIWindow _orderFrontWithoutMakingKey] + 49
50 UIKit 0x002933c8 -[UIWindow makeKeyAndVisible] + 65
51 UIKit 0x00243bc0 -[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 2097
52 UIKit 0x00248667 -[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 824
53 UIKit 0x0025cf92 -[UIApplication handleEvent:withNewEvent:] + 3517
54 UIKit 0x0025d555 -[UIApplication sendEvent:] + 85
55 UIKit 0x0024a250 _UIApplicationHandleEvent + 683
56 GraphicsServices 0x037fff02 _PurpleEventCallback + 776
57 GraphicsServices 0x037ffa0d PurpleEventCallback + 46
58 CoreFoundation 0x01785ca5 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 53
59 CoreFoundation 0x017859db __CFRunLoopDoSource1 + 523
60 CoreFoundation 0x017b068c __CFRunLoopRun + 2156
61 CoreFoundation 0x017af9d3 CFRunLoopRunSpecific + 467
62 CoreFoundation 0x017af7eb CFRunLoopRunInMode + 123
63 UIKit 0x00247d9c -[UIApplication _run] + 840
64 UIKit 0x00249f9b UIApplicationMain + 1225
65 Timesheet 0x0000b60d main + 141
66 libdyld.dylib 0x01eeb701 start + 1
67 ??? 0x00000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Have you looked into:
2014-05-29 10:34:35.723 Timesheet[14438:60b] -[UITableViewCell setAlternateRowColor:]
?
setAlternateRowColor is not a valid setter on UITableViewCell. without seeing the code it's difficult to guess what the error might be, but you are using the cell improperly.

Resources