Ranga
Ranga

Reputation: 821

Implement plot Graph in iPhone using core-plot

I am trying to implementing plot graphs using the link.

http://www.switchonthecode.com/tutorials/using-core-plot-in-an-iphone-application

But as for support i need to add plot files & frameworks.

How to install CorePlot framework correctly?

I am using xcode 4.1

Copy the CorePlotHeaders to my Xcode project

Copy libCorePlotCocoaTouch.a to my Xcode project

Add to Other Linker Flags in my target build settings: -ObjC -all_load

in xcode 4.1

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

I have an error causes to crash the app

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSCFString sizeWithTextStyle:]: unrecognized selector sent to instance 0x4e88e20'

Call stack at first throw: ( 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 

Upvotes: 0

Views: 1189

Answers (1)

Dr.Kameleon
Dr.Kameleon

Reputation: 22810

Go to your project's Build Settings -> Linking Options.

See here :

enter image description here

Upvotes: 2

Related Questions