2010-06-14 90 views
0

即时尝试将Coreplot图置于UIView中。 有些问题,我应该在XIB中完成吗?或者我应该编程吗?UIViewController中的核心绘图图

如果是的话我该如何写代码?等等。

我其实有两个类。一个名为GraphView的应该保存Coreplot图。 另一个叫做CorePlotViewController。

Thx for looking guys。

回答

0

嗯我想我一定是一些真正的新手问甚至这种类型的问题:/ 但我想我解决了它。

CorePlotViewController *aCorePlotViewController = [[CorePlotViewController alloc] initWithNibName:@"CorePlotViewController" bundle:nil]; 
[self.view addSubview :aCorePlotViewController.view];