From d34dc49d7730e749381bdebefb2f538ab06afba5 Mon Sep 17 00:00:00 2001 From: kudit Date: Mon, 17 Mar 2014 10:09:16 -0400 Subject: [PATCH] changed to NSTextAlignmentCenter Updated to use non-deprecated constant to prevent warnings --- OVGraphView/OVGraphYIndicatorView.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]; }