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..