From 25f409185a53e5e7beb17518a684298d92d31b3f Mon Sep 17 00:00:00 2001
From: 单军华 <WindShan@danjunhuas-MacBook-Pro.local>
Date: Fri, 04 May 2018 13:34:53 +0800
Subject: [PATCH] iPhone x 屏幕适配修改

---
 pregnancy_guard/BaseProject/Controller/Mine/HistoryRecordPage.m |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/pregnancy_guard/BaseProject/Controller/Mine/HistoryRecordPage.m b/pregnancy_guard/BaseProject/Controller/Mine/HistoryRecordPage.m
index 56ea0ac..d9f7249 100644
--- a/pregnancy_guard/BaseProject/Controller/Mine/HistoryRecordPage.m
+++ b/pregnancy_guard/BaseProject/Controller/Mine/HistoryRecordPage.m
@@ -45,7 +45,7 @@
     self.title = @"������������";
     [self setNavigationLeft:@"ic_back_arraw.png" sel:@selector(backAticon)];
     
-    UIImageView * ic_bottom_bg = [[UIImageView alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-112-64, SCREEN_WIDTH, 112)];
+    UIImageView * ic_bottom_bg = [[UIImageView alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-112-NavBar_Height, SCREEN_WIDTH, 112)];
     ic_bottom_bg.image = [UIImage imageNamed:@"ic_bottom_bg"];
     ic_bottom_bg.userInteractionEnabled = YES;
     [self.view addSubview:ic_bottom_bg];
@@ -177,7 +177,7 @@
     
      [self drawHistoryRecordLine];
     
-    _UnitTipsLabel = [[GloriaLabel alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-112-64-30, SCREEN_WIDTH, 20)];
+    _UnitTipsLabel = [[GloriaLabel alloc] initWithFrame:CGRectMake(0, SCREEN_HEIGHT-112-NavBar_Height-30, SCREEN_WIDTH, 20)];
     _UnitTipsLabel.font = [UIFont boldSystemFontOfSize:14];
     _UnitTipsLabel.textAlignment = UITextAlignmentCenter;
     _UnitTipsLabel.textColor = RgbColor(0, 146, 252);
@@ -373,7 +373,7 @@
 {
     
     /*     Create object        */
-    historyRecordLineChart = [[JHLineChart alloc] initWithFrame:CGRectMake(0, 60, SCREEN_WIDTH-20, SCREEN_HEIGHT-112-64-40-40-20) andLineChartType:JHChartLineEveryValueForEveryX];
+    historyRecordLineChart = [[JHLineChart alloc] initWithFrame:CGRectMake(0, 60, SCREEN_WIDTH-20, SCREEN_HEIGHT-112-NavBar_Height-40-40-20) andLineChartType:JHChartLineEveryValueForEveryX];
     
     /* The scale value of the X axis can be passed into the NSString or NSNumber type and the data structure changes with the change of the line chart type. The details look at the document or other quadrant X axis data source sample.*/
     

--
Gitblit v1.8.0