diff --git a/OVGraphView/OVGraphYIndicatorView.m b/OVGraphView/OVGraphYIndicatorView.m index b86e6b5..0951161 100644 --- a/OVGraphView/OVGraphYIndicatorView.m +++ b/OVGraphView/OVGraphYIndicatorView.m @@ -17,7 +17,7 @@ - (id)initWithFrame:(CGRect)frame [self setOpaque:NO]; _yValueLabel=[[UILabel alloc]initWithFrame:CGRectMake(0, 1, 40, 18)]; _yValueLabel.font=[UIFont fontWithName:@"Futura" size:12]; - _yValueLabel.textAlignment=UITextAlignmentCenter; + _yValueLabel.textAlignment=NSTextAlignmentCenter; _yValueLabel.backgroundColor=[UIColor clearColor]; [self addSubview:_yValueLabel]; }