Xcode/IOS调试
我对objective C和IOS编程完全是一个新手,试图在苹果网站上提供教程 我在苹果教程中说到了一点,你在addto-do页面上添加了一个放松段Xcode/IOS调试,ios,objective-c,xcode,Ios,Objective C,Xcode,我对objective C和IOS编程完全是一个新手,试图在苹果网站上提供教程 我在苹果教程中说到了一点,你在addto-do页面上添加了一个放松段 https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html#//apple_ref/doc/uid/TP40011343-CH8-SW1 我成功地在“取消”和“完成”按钮中添加了“展开”分段 然而,当我
https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html#//apple_ref/doc/uid/TP40011343-CH8-SW1
我成功地在“取消”和“完成”按钮中添加了“展开”分段
然而,当我编译程序时,当它编译时,它不再允许我点击+进入“添加到”页面
https://developer.apple.com/library/ios/referencelibrary/GettingStarted/RoadMapiOS/SecondTutorial.html#//apple_ref/doc/uid/TP40011343-CH8-SW1
当模拟器最初加载时,一切正常。但是当我点击+,Xcode出现在模拟器前面,在调试器中,它显示了下面的内容
注意:我没有调试经验。编辑器中显示的是main.m,下面是底部调试部分的右侧:
2014-12-03 13:28:54.854 single-nocore[20692:1523451] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UITableViewController loadView] loaded the "vXZ-lx-hvc-view-kh9-bI-dsS" nib but didn't get a UITableView.'
*** First throw call stack:
(
0 CoreFoundation 0x0000000102eabf35 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000101265bb7 objc_exception_throw + 45
2 CoreFoundation 0x0000000102eabe6d +[NSException raise:format:] + 205
3 UIKit 0x0000000101785415 -[UITableViewController loadView] + 249
4 UIKit 0x00000001015c87f9 -[UIViewController loadViewIfRequired] + 75
5 UIKit 0x00000001015c8c8e -[UIViewController view] + 27
6 UIKit 0x0000000101600d3b -[UINavigationController preferredContentSize] + 149
7 UIKit 0x00000001015a8ec2 -[UIPresentationController preferredContentSizeDidChangeForChildContentContainer:] + 101
8 UIKit 0x00000001015a6b0d __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 108
9 UIKit 0x00000001014c6331 _applyBlockToCFArrayCopiedToStack + 314
10 UIKit 0x00000001014c61ab _afterCACommitHandler + 516
11 CoreFoundation 0x0000000102de0dc7 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
12 CoreFoundation 0x0000000102de0d20 __CFRunLoopDoObservers + 368
13 CoreFoundation 0x0000000102dd6b53 __CFRunLoopRun + 1123
14 CoreFoundation 0x0000000102dd6486 CFRunLoopRunSpecific + 470
15 GraphicsServices 0x0000000104bae9f0 GSEventRunModal + 161
16 UIKit 0x00000001014a3420 UIApplicationMain + 1282
17 single-nocore 0x0000000100d39b23 main + 115
18 libdyld.dylib 0x0000000103b5c145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
提前感谢您的建议。请发布您的代码。。。再看一看这个链接:听起来你想推一个UITableViewController,但是故事板没有连接一个表视图。你能提供故事板的屏幕截图吗?我用NickCatib的评论中接受的答案修复了它,在目标视图的头文件的.h文件中将UITableView控制器更改为UITable控制器。我真的不知道为什么会这样,但它做到了。也许这与最初苹果的教程使用导航设置segue有关,然后说要撤销它并将其设置为模态。。。