ios - draw an coloured rectangle in CPTAxisLabel (core-plot) -
what want draw small rectangle inside cptaxislabel display colour, have ready tried draw rectangle in layer , add sublayer, stretches small sublayer on label , text isn`t visible anymore, tried make cptlegend , add label did not found method position in right side of label, sits in center, tried changing legends position, frame, bounds, padding , nothing. know better way of adding rectangle shape in cptaxislabel , keep text in label ?
i assume you're using cpttextlayer
label's contentlayer
. use image fill on text layer contains rectangle. make stretchable image , set stretchable area right of rectangle. set paddingleft
on text layer leave room rectangle left of label text.
Comments
Post a Comment