我正在制作使用 Core-Plot 图表的 iphone 应用程序。该应用程序将“SavolaViewController”作为包含按钮的主类,当单击按钮时,此代码将转到另一个名为“ChartViewController”的类
ChartViewControllerVar = [[ChartViewController alloc]initWithNibName:@"ChartViewController" bundle:nil];
[self presentModalViewController:ChartViewControllerVar animated:YES];
我已经阅读 core-plot 4-6 小时,但我没有理解任何教程(无法理解)[({“请不要用教程链接回答”})]
我已经处理了 Core-Plot .zip 文件中示例中的 Core-Plot 代码(您将在下面的链接中找到代码)。
我在控制台中有这个味精
2012-07-15 16:38:31.325 Savola[13105:f803] * 由于未捕获的异常“NSInternalInconsistencyException”而终止应用程序,原因:“-[UIViewController _loadViewFromNibNamed:bundle:] 加载了“ChartViewController”笔尖,但视图出口没有放。' * First throw call stack: (0x140a022 0x19c2cd6 0x13b2a48 0x13b29b9 0x4102dd 0x410779 0x41099b 0x4199bc 0x414818 0x630565 0x417857 0x4179bc 0xca94792 0x4179fc 0x9a4f 0x3da5c5 0x3da7fa 0xc6f85d 0x13de936 0x13de3d7 0x1341790 0x1340d84 0x1340c9b 0x228f7d8 0x228f88a 0x349626 0x8c0a 0x2c55) terminate called throwing an exception(lldb)
我想要什么(如果可以的话)
- 修复代码以在我的应用程序中运行。
- 我需要什么,但在 .xib 文件中。
- 删除不需要的代码。