Eureka MultivaluedSection Add NSRangeException - ios

Any kind of special setup needed to make MultivaluedSection Add functionality to work in Eureka?
I have copied code from Example project into mine and instead of rows being added I get an exception. Funny thing is that in Example project everything seems to work fine, that makes me thinking that I need some kind of additional setup, maybe?
Exception:
'NSRangeException', reason: '-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:]: row (1) beyond bounds (1) for section (1).
uncaught exception 'NSRangeException', reason: '-[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:]: row (1) beyond bounds (1) for section (1).'
*** First throw call stack:
(
0 CoreFoundation 0x000000010c9ab1cb __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010c30df41 objc_exception_throw + 48
2 CoreFoundation 0x000000010ca1fb95 +[NSException raise:format:] + 197
3 UIKit 0x0000000109bc8d76 -[UITableView _contentOffsetForScrollingToRowAtIndexPath:atScrollPosition:usingPresentationValues:] + 1861
4 UIKit 0x0000000109bc9b8f -[UITableView _scrollToRowAtIndexPath:atScrollPosition:animated:usingPresentationValues:] + 146
5 UIKit 0x0000000109bc9a11 -[UITableView scrollToRowAtIndexPath:atScrollPosition:animated:] + 123
6 Eureka 0x0000000107b7558c _T06Eureka18FormViewControllerC05tableC0ySo07UITableC0C_SC0fC16CellEditingStyleO6commit10Foundation9IndexPathV8forRowAttF + 2780
7 Eureka 0x0000000107b75ba7 _T06Eureka18FormViewControllerC05tableC0ySo07UITableC0C_SC0fC16CellEditingStyleO6commit10Foundation9IndexPathV8forRowAttFTo + 119
8 UIKit 0x0000000109bee33e -[UITableView _didInsertRowForTableCell:] + 122
9 UIKit 0x0000000109ec6bee -[UITableViewCell editControlWasClicked:] + 180
10 UIKit 0x0000000109a949bd -[UIApplication sendAction:to:from:forEvent:] + 83
11 UIKit 0x0000000109c0b183 -[UIControl sendAction:to:forEvent:] + 67
12 UIKit 0x0000000109c0b4a0 -[UIControl _sendActionsForEvents:withEvent:] + 450
13 UIKit 0x0000000109c0b614 -[UIControl _sendActionsForEvents:withEvent:] + 822
14 UIKit 0x0000000109c0a3cd -[UIControl touchesEnded:withEvent:] + 618
15 UIKit 0x000000010a071a88 _UIGestureEnvironmentSortAndSendDelayedTouches + 5560
16 UIKit 0x000000010a06b93e _UIGestureEnvironmentUpdate + 1483
17 UIKit 0x000000010a06b327 -[UIGestureEnvironment _deliverEvent:toGestureRecognizers:usingBlock:] + 484
18 UIKit 0x000000010a06a3d3 -[UIGestureEnvironment _updateGesturesForEvent:window:] + 288
19 UIKit 0x0000000109b0a45c -[UIWindow sendEvent:] + 4102
20 UIKit 0x0000000109aaf802 -[UIApplication sendEvent:] + 352
21 UIKit 0x000000010a3e1a50 __dispatchPreprocessedEventFromEventQueue + 2809
22 UIKit 0x000000010a3e45b7 __handleEventQueueInternal + 5957
23 CoreFoundation 0x000000010c94e2b1 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x000000010c9edd31 __CFRunLoopDoSource0 + 81
25 CoreFoundation 0x000000010c932c19 __CFRunLoopDoSources0 + 185
26 CoreFoundation 0x000000010c9321ff __CFRunLoopRun + 1279
27 CoreFoundation 0x000000010c931a89 CFRunLoopRunSpecific + 409
28 GraphicsServices 0x0000000110c5a9c6 GSEventRunModal + 62
29 UIKit 0x0000000109a92d30 UIApplicationMain + 159

Solved.
My custom ViewController was overriding override func viewWillAppear(_ animated: Bool), but I forgot to call super.viewWillAppear().
Turns out that was critical for Eureka to work properly

Related to OP, I too had same error. In my case it was caused because I was embedding the FormViewController() incorrectly inside another view controller.
My solution was to add it as childViewController (see Eureka Issue 1045). In short, childViewControllers receive appearance & rotation events from parent VC (viewWillAppear etc) What does addChildViewController actually do?.
My working Sample code (swift 4.2):
class MyViewController: UIViewController {
var tempForm:FormViewController!
override func viewDidLoad() {
super.viewDidLoad()
tempTemp = FormViewController()
self.addChild(tempForm)
self.setupTempFormSections()
}
private func setupTempFormSections(){
tempForm.form +++ Section(...)
}
...
}

Related

is there a way to get a UIView's frame (create in storyboard) in code

I createa a UIView in the storyboard, and want to add some inner shadow to this view. I also created an IBoutlet to this view. Is there any way to get view's frame?
#IBOutlet weak var display: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
print(display.frame.height)
}
error
Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<Calculator.ViewController 0x7fba77608cd0> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key screen.'
*** First throw call stack:
(
0 CoreFoundation 0x000000010d7a2b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000109cd5141 objc_exception_throw + 48
2 CoreFoundation 0x000000010d7a2a59 -[NSException raise] + 9
3 Foundation 0x00000001097eb00b -[NSObject(NSKeyValueCoding) setValue:forKey:] + 292
4 UIKit 0x000000010b09e994 -[UIViewController setValue:forKey:] + 87
5 UIKit 0x000000010b30ba09 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x000000010d748e8d -[NSArray makeObjectsPerformSelector:] + 269
7 UIKit 0x000000010b30a3bf -[UINib instantiateWithOwner:options:] + 1856
8 UIKit 0x000000010b0a4fc3 -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x000000010b0a58d9 -[UIViewController loadView] + 177
10 UIKit 0x000000010b0a5c0a -[UIViewController loadViewIfRequired] + 195
11 UIKit 0x000000010b0a645a -[UIViewController view] + 27
12 UIKit 0x000000010af6e98a -[UIWindow addRootViewControllerViewIfPossible] + 65
13 UIKit 0x000000010af6f070 -[UIWindow _setHidden:forced:] + 294
14 UIKit 0x000000010af81ebe -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x000000010aefb37f -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4346
16 UIKit 0x000000010af015e4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1709
17 UIKit 0x000000010aefe7f3 -[UIApplication workspaceDidEndTransaction:] + 182
18 FrontBoardServices 0x0000000111b715f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
19 FrontBoardServices 0x0000000111b7146d -[FBSSerialQueue _performNext] + 186
20 FrontBoardServices 0x0000000111b717f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
21 CoreFoundation 0x000000010d748c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
22 CoreFoundation 0x000000010d72e0cf __CFRunLoopDoSources0 + 527
23 CoreFoundation 0x000000010d72d5ff __CFRunLoopRun + 911
24 CoreFoundation 0x000000010d72d016 CFRunLoopRunSpecific + 406
25 UIKit 0x000000010aefd08f -[UIApplication _run] + 468
26 UIKit 0x000000010af03134 UIApplicationMain + 159
27 Calculator 0x00000001096fa327 main + 55
28 libdyld.dylib 0x000000010e74265d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
help appreciated
You are saying its a view but you have drawn an IBOutlet of UILabel.
Also yourView.frame will definitely give you the frame.
Also try deleting the previous outlet and redraw it.
You have added an outlet for a UILabel, but stil the same there to get the frame display.frame. Add an outlet to your view instead if you want that and then just view.frame.
It dosen't matter if it´s a view created in your storyboard or programmatically, you can always get the frame by:
view.frame
But if you specially want the frame that you have created in your Storyboard then you need to create an IBOutlet.

Iphone Simulator terminating opening a new Table ViewController

In my application I had a button and from there I opened a TableViewController and it worked perfectly fine.
And now I added another button and I linked the button to another TableViewController
Now when I am clicking this new button my application is crashing:
libc++abi.dylib: terminating with uncaught exception of type NSException
In other places in StackOverflow they mentioned about an unclosed IBOutlet but I have not created any outlet for the button itself, so what problem could that be.
Log :
*** First throw call stack:
(
0 CoreFoundation 0x000000010712f34b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x000000010677321e objc_exception_throw + 48
2 CoreFoundation 0x0000000107198265 +[NSException raise:format:] + 197
3 UIKit 0x000000010797383c -[UITableViewController loadView] + 638
4 UIKit 0x00000001076f3c4c -[UIViewController loadViewIfRequired] + 201
5 UIKit 0x00000001076f44a0 -[UIViewController view] + 27
6 UIKit 0x0000000107fb88d0 -[_UIFullscreenPresentationController _setPresentedViewController:] + 87
7 UIKit 0x00000001076ced26 -[UIPresentationController initWithPresentedViewController:presentingViewController:] + 141
8 UIKit 0x000000010770730b -[UIViewController _presentViewController:withAnimationController:completion:] + 3956
9 UIKit 0x000000010770a6df -[UIViewController _performCoordinatedPresentOrDismiss:animated:] + 530
10 UIKit 0x000000010770a1c5 -[UIViewController presentViewController:animated:completion:] + 179
11 UIKit 0x000000010770f892 -[UIViewController _showViewController:withAction:sender:] + 274
12 UIKit 0x0000000107bd41b6 __66-[UIStoryboardShowSegueTemplate newDefaultPerformHandlerForSegue:]_block_invoke + 134
13 UIKit 0x0000000107d2d40d -[UIStoryboardSegueTemplate _performWithDestinationViewController:sender:] + 447
14 UIKit 0x0000000107d2d21d -[UIStoryboardSegueTemplate _perform:] + 82
15 UIKit 0x0000000107d2d4df -[UIStoryboardSegueTemplate perform:] + 156
16 UIKit 0x0000000107554b88 -[UIApplication sendAction:to:from:forEvent:] + 83
17 UIKit 0x00000001076da2b2 -[UIControl sendAction:to:forEvent:] + 67
18 UIKit 0x00000001076da5cb -[UIControl _sendActionsForEvents:withEvent:] + 444
19 UIKit 0x00000001076d94c7 -[UIControl touchesEnded:withEvent:] + 668
20 UIKit 0x00000001075c20d5 -[UIWindow _sendTouchesForEvent:] + 2747
21 UIKit 0x00000001075c37c3 -[UIWindow sendEvent:] + 4011
22 UIKit 0x0000000107570a33 -[UIApplication sendEvent:] + 371
23 UIKit 0x0000000107d62b6d __dispatchPreprocessedEventFromEventQueue + 3248
24 UIKit 0x0000000107d5b817 __handleEventQueue + 4879
25 CoreFoundation 0x00000001070d4311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
26 CoreFoundation 0x00000001070b959c __CFRunLoopDoSources0 + 556
27 CoreFoundation 0x00000001070b8a86 __CFRunLoopRun + 918
28 CoreFoundation 0x00000001070b8494 CFRunLoopRunSpecific + 420
29 GraphicsServices 0x0000000109ebaa6f GSEventRunModal + 161
30 UIKit 0x0000000107552f34 UIApplicationMain + 159
31 OneTest 0x0000000105bfbc3f main + 111
32 libdyld.dylib 0x0000000108eef68d start + 1
)
This is what I did, I removed that new TableViewcontroller. Then I added a new ViewController and linked this ViewController to my Button by making a Segue. To the same button and it worked by opening the new ViewController. Then as soon as I linked the new View controller to my class it stopped working. Any possible reason for that?

Swift NSUnknownKeyException FoodTracker

I'm just beginning to learn swift, and I have trouble understanding what the console is trying to tell me with this error. I'm following the Apple's guide to learn swift and in the section "Connect the UI to Code" I'm having the following problem:
2016-02-22 01:06:54.121 FoodTracker[20300:502503] <CATransformLayer: 0x7fab3973cb90> - changing property contentsCenter in transform-only layer, will have no effect
2016-02-22 01:06:54.127 FoodTracker[20300:502503] *** Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<FoodTracker.ViewController 0x7fab394a9a00> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key setDefaultLabelText.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001040b7e65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000105df7deb objc_exception_throw + 48
2 CoreFoundation 0x00000001040b7aa9 -[NSException raise] + 9
3 Foundation 0x00000001044809bb -[NSObject(NSKeyValueCoding) setValue:forKey:] + 288
4 UIKit 0x0000000104a63320 -[UIViewController setValue:forKey:] + 88
5 UIKit 0x0000000104c91f41 -[UIRuntimeOutletConnection connect] + 109
6 CoreFoundation 0x0000000103ff84a0 -[NSArray makeObjectsPerformSelector:] + 224
7 UIKit 0x0000000104c90924 -[UINib instantiateWithOwner:options:] + 1864
8 UIKit 0x0000000104a69eea -[UIViewController _loadViewFromNibNamed:bundle:] + 381
9 UIKit 0x0000000104a6a816 -[UIViewController loadView] + 178
10 UIKit 0x0000000104a6ab74 -[UIViewController loadViewIfRequired] + 138
11 UIKit 0x0000000104a6b2e7 -[UIViewController view] + 27
12 UIKit 0x0000000104941ab0 -[UIWindow addRootViewControllerViewIfPossible] + 61
13 UIKit 0x0000000104942199 -[UIWindow _setHidden:forced:] + 282
14 UIKit 0x0000000104953c2e -[UIWindow makeKeyAndVisible] + 42
15 UIKit 0x00000001048cc663 -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4131
16 UIKit 0x00000001048d2cc6 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1760
17 UIKit 0x00000001048cfe7b -[UIApplication workspaceDidEndTransaction:] + 188
18 FrontBoardServices 0x0000000107c8c754 -[FBSSerialQueue _performNext] + 192
19 FrontBoardServices 0x0000000107c8cac2 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
20 CoreFoundation 0x0000000103fe3a31 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
21 CoreFoundation 0x0000000103fd995c __CFRunLoopDoSources0 + 556
22 CoreFoundation 0x0000000103fd8e13 __CFRunLoopRun + 867
23 CoreFoundation 0x0000000103fd8828 CFRunLoopRunSpecific + 488
24 UIKit 0x00000001048cf7cd -[UIApplication _run] + 402
25 UIKit 0x00000001048d4610 UIApplicationMain + 171
26 FoodTracker 0x0000000103ed947d main + 109
27 libdyld.dylib 0x000000010690092d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
Also, this is the code I'm running:
import UIKit
class ViewController: UIViewController {
//MARK: Propierties
#IBOutlet weak var nameTextField: UITextField!
#IBOutlet weak var mealNameLabel: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
//MARK: Actions
#IBAction func setDefaultLabelText(sender: UIButton) {
mealNameLabel.text = "Default Text"
}
}
Thank you in advance for your help. Looking forward to it.
Already solved my problem. As I was just starting to code, I tried copying and pasting what I've written into a new file and it works perfectly now. No issues at all. It might have been some bug with the config. Thanks anyway.

copywithzone exception on object not included in current class

I am using a 4 UIButton that bring up the same UIPickerView but with different NSArray(4) appearing for each button. Using a 4 bool to let the UIPickerView to decide which to load, and which row's text to grab. The buttons methods just include the four bool properties, that sets the three to false and the correct one(button tapped) to true. Then UIViewAnimateWithDuration is called that brings up the UIPickerView (printed in a UIView - for both UIPickerView and UIToolbar to work together). All buttons are working just fine(no matter how many time I bring/close the UIPickerView)apart from one (even if it is pressed in first-middle-last-any order). Xcode throws the following exception:
What I did:
remove the button, create a new one
tried both storyboard/controller method of creating a button
added method to button using addtarget
linked button with method using storyboard
So what I am asking if anyone can see anything that I cannot see in my debugger's exception thrown:(sportCenter is a NSObject and it is not imported in this controller -tried that too!)
2015-11-05 13:14:36.356 -----[3975:1397857] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[sportCenter copyWithZone:]: unrecognized selector sent to instance 0x7f8709f62250'
*** First throw call stack:
(
0 CoreFoundation 0x0000000103673f45 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x00000001030eddeb objc_exception_throw + 48
2 CoreFoundation 0x000000010367c56d -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x00000001035c9eea ___forwarding___ + 970
4 CoreFoundation 0x00000001035c9a98 _CF_forwarding_prep_0 + 120
5 UIKit 0x0000000103c8954b -[UILabel _setText:] + 114
6 UIKit 0x0000000103a0580c -[UIPickerView tableView:cellForRowAtIndexPath:] + 863
7 UIKit 0x000000010429c146 -[UIPickerColumnView tableView:cellForRowAtIndexPath:] + 103
8 UIKit 0x0000000103b75e2a -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 782
9 UIKit 0x0000000103b75f3f -[UITableView _createPreparedCellForGlobalRow:willDisplay:] + 74
10 UIKit 0x0000000103b4b307 -[UITableView _updateVisibleCellsNow:isRecursive:] + 3187
11 UIKit 0x0000000103b5d369 -[UITableView cellForRowAtIndexPath:] + 186
12 UIKit 0x000000010412419a -[UIPickerTableView selectRow:animated:notify:] + 342
13 UIKit 0x0000000103a0421f -[UIPickerView _resetSelectionOfTables] + 157
14 UIKit 0x0000000103a040ab __30-[UIPickerView layoutSubviews]_block_invoke + 9523
15 UIKit 0x0000000103ac9c10 +[UIView(Animation) performWithoutAnimation:] + 65
16 UIKit 0x0000000103a01b33 -[UIPickerView layoutSubviews] + 147
17 UIKit 0x0000000103a04fcb -[UIPickerView selectedRowInComponent:] + 45
18 UIKit 0x0000000103a0009e -[UIPickerView _updateSelectedRows] + 135
19 UIKit 0x0000000103a001cf -[UIPickerView didMoveToWindow] + 117
20 UIKit 0x0000000103acebe0 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 1768
21 UIKit 0x0000000103ace856 -[UIView(Internal) _didMoveFromWindow:toWindow:] + 862
22 UIKit 0x0000000103ac3e2c __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke + 155
23 Foundation 0x0000000102cc3d4a -[NSISEngine withBehaviors:performModifications:] + 155
24 UIKit 0x0000000103ac3d4a -[UIView(Hierarchy) _postMovedFromSuperview:] + 575
25 UIKit 0x0000000103ad17e7 -[UIView(Internal) _addSubview:positioned:relativeTo:] + 1967
26 --- 0x00000001026cbe7b -[AllOngoingViewController animatePickerView] + 107
27 --- 0x00000001026cbcd7 -[AllOngoingViewController centersAreTapped] + 71
28 UIKit 0x0000000103f0194f _UIGestureRecognizerSendTargetActions + 153
29 UIKit 0x0000000103efdfc1 _UIGestureRecognizerSendActions + 162
30 UIKit 0x0000000103efbfbe -[UIGestureRecognizer _updateGestureWithEvent:buttonEvent:] + 843
31 UIKit 0x0000000103f04283 ___UIGestureRecognizerUpdate_block_invoke898 + 79
32 UIKit 0x0000000103f04121 _UIGestureRecognizerRemoveObjectsFromArrayAndApplyBlocks + 342
33 UIKit 0x0000000103ef1bdd _UIGestureRecognizerUpdate + 2634
34 UIKit 0x0000000103a8f9c0 -[UIWindow _sendGesturesForEvent:] + 1137
35 UIKit 0x0000000103a90bf6 -[UIWindow sendEvent:] + 849
36 UIKit 0x0000000103a402fa -[UIApplication sendEvent:] + 263
37 UIKit 0x0000000103a1aabf _UIApplicationHandleEventQueue + 6844
38 CoreFoundation 0x00000001035a0011 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
39 CoreFoundation 0x0000000103595f3c __CFRunLoopDoSources0 + 556
40 CoreFoundation 0x00000001035953f3 __CFRunLoopRun + 867
41 CoreFoundation 0x0000000103594e08 CFRunLoopRunSpecific + 488
42 GraphicsServices 0x0000000106616ad2 GSEventRunModal + 161
43 UIKit 0x0000000103a2030d UIApplicationMain + 171
44 ----- 0x00000001026c1caf main + 111
45 libdyld.dylib 0x000000010a19e92d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
You must add your own copyWithZone: method in your objects...
However, I don't really understand your question / context. It looks designed in a bit complex way. Booleans array have chances to be a bad approach. It is better to have a selectedButton ( UIButton ) property in your controller, to know which one is selected, than maintain four booleans.
And finally, no matter the situation, if things are working for all objects, excepted the first one, it often means that you have an array index error somewhere.
I hope it helps.

terminating with uncaught exception of type NSException? 'NSInternalInconsistencyException' [duplicate]

This question already has an answer here:
Loaded the nib but didn't get a UITableView Exception
(1 answer)
Closed 8 years ago.
Today I ran my code that hasn't had any errors until now. Whenever someone clicks on the middle tab at the bottom the app crashes completely but all the other tabs work fine. Here's the call stack:
2014-07-01 16:27:19.848 Test Web[66180:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "lwz-qR-aDm-view-tp0-bK-7dP" nib but didn't get a UITableView.'
*** First throw call stack:
(
0 CoreFoundation 0x017f11e4 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x015708e5 objc_exception_throw + 44
2 CoreFoundation 0x017f0fbb +[NSException raise:format:] + 139
3 UIKit 0x0050418e -[UITableViewController loadView] + 281
4 UIKit 0x0034f0d3 -[UIViewController loadViewIfRequired] + 78
5 UIKit 0x0034f5d9 -[UIViewController view] + 35
6 UIKit 0x0038711f -[UITabBarController transitionFromViewController:toViewController:transition:shouldSetSelected:] + 407
7 UIKit 0x00386943 -[UITabBarController transitionFromViewController:toViewController:] + 63
8 UIKit 0x00382bed -[UITabBarController _setSelectedViewController:] + 281
9 UIKit 0x00382acc -[UITabBarController setSelectedViewController:] + 180
10 UIKit 0x0038683f -[UITabBarController _tabBarItemClicked:] + 312
11 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
12 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
13 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
14 UIKit 0x004f6629 -[UITabBar _sendAction:withEvent:] + 479
15 libobjc.A.dylib 0x0158282b -[NSObject performSelector:withObject:] + 70
16 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
17 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
18 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
19 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
20 UIKit 0x00333c06 -[UIControl sendActionsForControlEvents:] + 48
21 UIKit 0x004fb23d -[UITabBar(Static) _buttonUp:] + 123
22 libobjc.A.dylib 0x01582880 -[NSObject performSelector:withObject:withObject:] + 77
23 UIKit 0x002323b9 -[UIApplication sendAction:to:from:forEvent:] + 108
24 UIKit 0x00232345 -[UIApplication sendAction:toTarget:fromSender:forEvent:] + 61
25 UIKit 0x00333bd1 -[UIControl sendAction:to:forEvent:] + 66
26 UIKit 0x00333fc6 -[UIControl _sendActionsForEvents:withEvent:] + 577
27 UIKit 0x00333243 -[UIControl touchesEnded:withEvent:] + 641
28 UIKit 0x00271ddd -[UIWindow _sendTouchesForEvent:] + 852
29 UIKit 0x002729d1 -[UIWindow sendEvent:] + 1117
30 UIKit 0x002445f2 -[UIApplication sendEvent:] + 242
31 UIKit 0x0022e353 _UIApplicationHandleEventQueue + 11455
32 CoreFoundation 0x0177a77f __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
33 CoreFoundation 0x0177a10b __CFRunLoopDoSources0 + 235
34 CoreFoundation 0x017971ae __CFRunLoopRun + 910
35 CoreFoundation 0x017969d3 CFRunLoopRunSpecific + 467
36 CoreFoundation 0x017967eb CFRunLoopRunInMode + 123
37 GraphicsServices 0x037e55ee GSEventRunModal + 192
38 GraphicsServices 0x037e542b GSEventRun + 104
39 UIKit 0x00230f9b UIApplicationMain + 1225
40 Test Web 0x000031fd main + 141
41 libdyld.dylib 0x01e38701 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
I've tried looking for a solution to this error and checking back over the storyboard but found nothing out of place. Any ideas on a fix?
UITableViewController needs an UITableView connected to it's view property.
Also make sure that the delegate and datasource are properly connected.
If you use xib, make sure that UITableView connected to fileOwner.tableView property.
You probably use xib file to make interface.

Resources