Quellcode durchsuchen

1.修改UWA Menu增加Privacy Policy。

Pen Li vor 7 Jahren
Ursprung
Commit
1ec0a8b62c
1 geänderte Dateien mit 18 neuen und 1 gelöschten Zeilen
  1. 18 1
      RedAnt ERP Mobile/common/Functions/MainViewController.m

+ 18 - 1
RedAnt ERP Mobile/common/Functions/MainViewController.m

@@ -1852,6 +1852,12 @@
     }
     
 #endif
+    
+    [map setValue:@"Privacy Policy" forKey:@"title"];
+    [map setValue:@"rect_change_password" forKey:@"img"];
+    [self.sideMenuItems addObject:map.copy];
+    
+    
     [map setValue:@"About us" forKey:@"title"];
     [map setValue:@"rect_change_password" forKey:@"img"];
     [self.sideMenuItems addObject:map.copy];
@@ -2445,7 +2451,18 @@
         }];
         
     }
-    
+    else if ([title isEqualToString:@"Privacy Policy"]) {
+        
+        NSString* url = @"https:www.baidu.com";
+        
+        NSString* title = @"Privacy Policy";
+        
+        WebViewController *ViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"WebViewController"];
+        ViewController.url = url;
+        ViewController.title = title;
+
+        [self.navigationController pushViewController:ViewController animated:YES];
+    }
     else if([title isEqualToString:@"About us"])
     {