2012-04-26 3 views
0

リンクを使用してプロットグラフを実装しようとしています。コアプロットを使用して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

コピー私のXcodeプロジェクト

コピーlibCorePlotCocoaTouch.aにCorePlotHeaders私のXcodeプロジェクトへ

その他のリンカフラグに私の目標を追加します。ビルド設定-ObjCは、私は、エラーがキャッチされない例外により 'NSInvalidArgumentException' にアプリを終了アプリ

をクラッシュしていxcode 4.1

And please provide me any other best tutorials for Graph applications in xcode4.1

を-all_load 、理由: ' - [NSCFString sizeWithTextStyle:]:認識されないselecto最初のスローでインスタンス0x4e88e20'

コールスタックに送信されたR: ( 0 CoreFoundationの0x012865a9 __exceptionPreprocess + 185

1 libobjc.A.dylib      0x000b4313 objc_exception_throw + 44 
2 CoreFoundation      0x012880bb -[NSObject(NSObject) 

doesNotRecognizeSelector:] +

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 
+0

の可能重複[エラー: " - \ [NSCFString sizeWithTextStyle:\]:認識されていないセレクタ" IPhone SDK内](http://stackoverflow.com/questions/5040067/error-nscfstring-sizewithtextstyle-unrecognized-selector-in-iphone-sdk) –

+0

以下のリンクに従ってください。プロジェクトにcore-plotライブラリをインストールする方法と散布図を描画する方法について説明しています。あなたがこれに従うときに解決策を見つけることを願っています。 http://www.johnwordsworth.com/2011/10/adding-charts-to-your-iphone-ipad-app-using-core-plot/ – Manikandan

+0

はい、これはxcode 4の素敵なチュートリアルです – Ranga

答えて

2

187は、プロジェクトのに行きますビルド設定 - >リンクオプション

はこちらをご覧ください:

enter image description here

+0

他のlinkeflagはありません。私は他のLD Flagを持っています...そこに-ObjC -all_loadを追加する方法は?ダイアグラム – Ranga

+0

@Rangaで私の編集の質問を参照してください。** Debug ** AND ** Release **サブフィールドをクリックして編集してください。 :-) –

+0

@Ranga私の例はXcode 4でした...申し訳ありません... –

関連する問題