From 94217b294ccd75a34787eb04d6e273e99536e45b Mon Sep 17 00:00:00 2001
From: 重庆迈尖科技有限公司
Date: 星期三, 30 一月 2019 15:12:32 +0800
Subject: [PATCH] no message

---
 BuWanVideo2.0/SettingWebView.m |   27 +++++++++++++++++++++++++--
 1 files changed, 25 insertions(+), 2 deletions(-)

diff --git a/BuWanVideo2.0/SettingWebView.m b/BuWanVideo2.0/SettingWebView.m
index 67c818a..7725350 100755
--- a/BuWanVideo2.0/SettingWebView.m
+++ b/BuWanVideo2.0/SettingWebView.m
@@ -25,14 +25,37 @@
     button.frame = CGRectMake(0, 0, 32, 32);
     UIBarButtonItem *iconBarItem=[[UIBarButtonItem alloc] initWithCustomView:button];
     self.navigationItem.leftBarButtonItem = iconBarItem;
-    
-    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, KScreenW, KScreenH)];
+    //璁剧疆浣跨敤妯℃�佽烦杞殑杩斿洖鎸夐挳
+    if(_ispresent){
+        //闅愯棌鐘舵�佹爮
+        [[UIApplication sharedApplication] setStatusBarHidden:YES];
+        //娣诲姞杩斿洖鎸夐挳
+        CGFloat height = 15;
+        if (KIsiPhoneX) {
+            height = 35;   
+        }
+        UIButton *backButton=[[UIButton alloc] initWithFrame:CGRectMake(15, height, 32, 32)];
+        [backButton setImage:[UIImage imageNamed:@"鍙栨秷鐧诲綍"] forState:UIControlStateNormal];
+        [backButton addTarget:self action:@selector(presentBack) forControlEvents:UIControlEventTouchUpInside];
+        [self.view addSubview:backButton];
+    }
+    CGFloat height = 64;
+    if (KIsiPhoneX) {
+        height = 84;
+    }
+    UIWebView *webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, height, KScreenW, KScreenH - height)];
     NSURLRequest *request =[NSURLRequest requestWithURL:[NSURL URLWithString:_requestURL]];
     [self.view addSubview: webView];
     [webView loadRequest:request];
 
     // Do any additional setup after loading the view from its nib.
 }
+-(void)presentBack{
+    [self dismissViewControllerAnimated:YES completion:^{
+        //鐘舵�佹爮閲嶇幇
+        [[UIApplication sharedApplication] setStatusBarHidden:NO];
+    }];
+}
 
 - (void)didReceiveMemoryWarning {
     [super didReceiveMemoryWarning];

--
Gitblit v1.8.0