iphone - Core Plot CPLineStyle compile error on readonly property -


trying build core plot , use cplinestyle compile error code...

cplinestyle *linestyle = [cplinestyle linestyle]; linestyle.linecolor = [cpcolor blackcolor]; 

error: object cannot set - either readonly property or no setter found

the property @synthesize'd , while it's declared

@property (nonatomic, readonly, retain) cpcolor *linecolor; 

in header redeclared in category class as

@property (nonatomic, readwrite, retain) cpcolor *linecolor; 

the compiler doesn't seem know redeclaration of property. what's wrong here?

gonzalo

please use way worked me ...

cpmutablelinestyle *plotlinestyle = [cplinestyle linestyle]; plotlinestyle.linecolor = [cpcolor whitecolor]; plotlinestyle.linewidth = 2.0f; 

then apply style axis or whatever similar can textstyle using cpmutabletextstyle..


Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -