2010-06-14 89 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];