Skip to content
This repository was archived by the owner on Oct 10, 2020. It is now read-only.

Commit

Permalink
remove warnings
Browse files Browse the repository at this point in the history
Updated drawAtPoint to use the non-deprecated withAttributes: version instead of the withFont: version.  Also removed unused yvalueoffset variable.
  • Loading branch information
kudit committed Mar 17, 2014
1 parent 049eeca commit 38dc251
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions OVGraphView/OVGraphView/OVGraphPlotView.m
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,7 @@ - (void)drawRect:(CGRect)rect{
CGContextStrokePath(context);
CGContextRestoreGState(context);

[point.xlabel drawAtPoint:CGPointMake(xpoint, self.frame.size.height-20) withFont:[UIFont fontWithName:@"Futura" size:12]];
int yvalueoffset;
yvalueoffset=0-30;
[point.xlabel drawAtPoint:CGPointMake(xpoint, self.frame.size.height-20) withAttributes:@{NSFontAttributeName:[UIFont fontWithName:@"Futura" size:12]}];

OVGraphYIndicatorView *ind=[[OVGraphYIndicatorView alloc]initWithFrame:CGRectMake(xpoint-15, ypoint-30, 40, 28)];
ind.yValueLabel.text=[point.yvalue stringValue];
Expand Down

0 comments on commit 38dc251

Please sign in to comment.