From ea79db7986d0570c4d4b323fd1c04507f1549577 Mon Sep 17 00:00:00 2001 From: Yuya Oka Date: Fri, 7 Oct 2016 14:13:27 +0900 Subject: [PATCH] Fix textAlignment deprecations --- .../Classes/View/EGORefreshTableHeaderView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EGOTableViewPullRefresh/Classes/View/EGORefreshTableHeaderView.m b/EGOTableViewPullRefresh/Classes/View/EGORefreshTableHeaderView.m index 332f8a8..69e7b6a 100755 --- a/EGOTableViewPullRefresh/Classes/View/EGORefreshTableHeaderView.m +++ b/EGOTableViewPullRefresh/Classes/View/EGORefreshTableHeaderView.m @@ -53,7 +53,7 @@ - (id)initWithFrame:(CGRect)frame arrowImageName:(NSString *)arrow textColor:(UI label.shadowColor = [UIColor colorWithWhite:0.9f alpha:1.0f]; label.shadowOffset = CGSizeMake(0.0f, 1.0f); label.backgroundColor = [UIColor clearColor]; - label.textAlignment = NSTextAlignmentCenter; + label.textAlignment = UIBaselineAdjustmentAlignCenters; [self addSubview:label]; _lastUpdatedLabel=label; [label release]; @@ -65,7 +65,7 @@ - (id)initWithFrame:(CGRect)frame arrowImageName:(NSString *)arrow textColor:(UI label.shadowColor = [UIColor colorWithWhite:0.9f alpha:1.0f]; label.shadowOffset = CGSizeMake(0.0f, 1.0f); label.backgroundColor = [UIColor clearColor]; - label.textAlignment = NSTextAlignmentCenter; + label.textAlignment = UIBaselineAdjustmentAlignCenters; [self addSubview:label]; _statusLabel=label; [label release];