我正在嘗試使用鏈接實現繪圖。在iPhone中使用核心圖實現繪圖圖形
http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application
至於支持我需要添加繪圖文件&框架。
How to install CorePlot framework correctly?
I am using xcode 4.1
複製CorePlotHeaders到我的Xcode項目
複製libCorePlotCocoaTouch.a到我的Xcode項目
添加到其它鏈接器標記在我的目標建立設置:-ObjC -all_load
在xcode 4.1
And please provide me any other best tutorials for Graph applications in xcode4.1
我有一個錯誤導致崩潰的應用程序
終止應用程序由於未捕獲的異常 'NSInvalidArgumentException' ,原因:' - [NSCFString sizeWithTextStyle:]:無法識別的選擇[R在第一擲發送到實例0x4e88e20'
調用堆棧: ( 0的CoreFoundation 0x012865a9 __exceptionPreprocess + 185
1 libobjc.A.dylib 0x000b4313 objc_exception_throw + 44
2 CoreFoundation 0x012880bb -[NSObject(NSObject)
doesNotRecognizeSelector:] + 187
3 CoreFoundation 0x011f7966 ___forwarding___ + 966
4 CoreFoundation 0x011f7522 _CF_forwarding_prep_0 + 50
5 ESPT 0x00031b60 -[CPTTextLayer sizeThatFits] + 125
6 ESPT 0x00031cab -[CPTTextLayer sizeToFit] + 62
7 ESPT 0x000316bf -[CPTTextLayer initWithText:style:] + 188
8 ESPT 0x0002bf69 -[CPTAxis
的可能重複[錯誤: 「 - \ [NSCFString sizeWithTextStyle:\]:無法識別的選擇」,在IPhone SDK(http://stackoverflow.com/questions/5040067/error-nscfstring-sizewithtextstyle-unrecognized-selector-in-iphone-sdk) – 2012-04-26 14:37:50
請按照下面的鏈接。它包含如何在我們的項目中安裝核心圖庫,並解釋如何繪製散點圖。希望你按照這個方法找到解決方案。 http://www.johnwordsworth.com/2011/10/adding-charts-to-your-iphone-ipad-app-using-core-plot/ – Manikandan 2012-04-26 11:37:00
是的,這是xcode 4的好教程 – Ranga 2012-04-26 12:25:01