Closed GoogleCodeExporter closed 8 years ago
The problem is that when you use the label.textStyle.fontsize syntax, the label
has no way of knowing that its text style has changed.
There are two coding patterns that will eliminate this problem until changes
are made to Core Plot:
#1.
CPTextStyle *newStyle = [label.textStyle copy];
newStyle.fontSize = newSize;
// set other text style properties as needed
label.textStyle = newStyle;
[newStyle release];
#2.
CPTextStyle *newStyle = [CPTextStyle textStyle];
newStyle.fontSize = newSize;
// set other text style properties as needed
label.textStyle = newStyle;
Original comment by eskr...@mac.com
on 23 Oct 2010 at 2:40
Thanks for the tip. Everything looks great now.
Original comment by jeremy.e...@gmail.com
on 23 Oct 2010 at 6:51
Attachments:
This issue was closed by revision 5b7172dc37.
Original comment by eskr...@mac.com
on 31 Oct 2010 at 3:02
Original issue reported on code.google.com by
jeremy.e...@gmail.com
on 23 Oct 2010 at 12:41Attachments: